summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-03 12:13:21 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-10-03 12:13:21 +0300
commit17df5ad61397fb12bb2cc9a94798de97266afd9e (patch)
tree84f2b1369ef23a12b6f572eb7b582e32628f6b10 /lib
parent9cfb380cc4529ea6b9314cc67819069c8e9c1a23 (diff)
downloadrpm-17df5ad61397fb12bb2cc9a94798de97266afd9e.tar.gz
rpm-17df5ad61397fb12bb2cc9a94798de97266afd9e.tar.bz2
rpm-17df5ad61397fb12bb2cc9a94798de97266afd9e.zip
Remove unnecessary {} block + indentation, no functional changes
Diffstat (limited to 'lib')
-rw-r--r--lib/psm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/psm.c b/lib/psm.c
index d4013669f..090c3a56c 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -550,12 +550,10 @@ static rpmRC runLuaScript(rpmpsm psm, Header h, rpmTag stag, ARGV_t argv,
var = rpmluavFree(var);
rpmluaPop(lua);
- {
- if (rpmluaRunScript(lua, script, sname) == -1) {
- void * ptr;
- ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR, stag, 1);
- rc = RPMRC_FAIL;
- }
+ if (rpmluaRunScript(lua, script, sname) == -1) {
+ void * ptr;
+ ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR, stag, 1);
+ rc = RPMRC_FAIL;
}
rpmluaDelVar(lua, "arg");