Skip to content

Commit 7f3673f

Browse files
committed
check: fix dangling if
1 parent 12950db commit 7f3673f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libpkg/pkg.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,11 +1554,12 @@ pkg_check_file(struct pkg *pkg, struct pkg_file *f, bool metadata, unsigned file
15541554
f->symlink_target, symlink_target);
15551555
}
15561556

1557-
if (file_status == FILE_OK)
1557+
if (file_status == FILE_OK) {
15581558
if (metadata)
15591559
pkg_emit_file_meta_ok(pkg, f);
1560-
else
1560+
} else {
15611561
rc = EPKG_FATAL;
1562+
}
15621563

15631564
return rc;
15641565
}

0 commit comments

Comments
 (0)