summaryrefslogtreecommitdiffstats
path: root/test/plist_test.c
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-06-07 21:48:10 -0700
committerGravatar Nikias Bassen2020-11-24 01:06:31 +0100
commit9f60cdd76b6044931cc2f2b6f2fbec3deb67a425 (patch)
tree66c1a3c42769535966367c3f6f10881da2673f33 /test/plist_test.c
parent2899553df92cd4e10590da73ae7375e5b5517d45 (diff)
downloadlibplist-9f60cdd76b6044931cc2f2b6f2fbec3deb67a425.tar.gz
libplist-9f60cdd76b6044931cc2f2b6f2fbec3deb67a425.tar.bz2
Improve code readability by not using else after return
[clang-tidy] Found with readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'test/plist_test.c')
-rw-r--r--test/plist_test.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/plist_test.c b/test/plist_test.c
index b498e1d..6e3947a 100644
--- a/test/plist_test.c
+++ b/test/plist_test.c
@@ -77,36 +77,32 @@ int main(int argc, char *argv[])
printf("PList XML parsing failed\n");
return 3;
}
- else
- printf("PList XML parsing succeeded\n");
+ printf("PList XML parsing succeeded\n");
plist_to_bin(root_node1, &plist_bin, &size_out);
if (!plist_bin)
{
printf("PList BIN writing failed\n");
return 4;
}
- else
- printf("PList BIN writing succeeded\n");
+ printf("PList BIN writing succeeded\n");
plist_from_bin(plist_bin, size_out, &root_node2);
if (!root_node2)
{
printf("PList BIN parsing failed\n");
return 5;
}
- else
- printf("PList BIN parsing succeeded\n");
+ printf("PList BIN parsing succeeded\n");
plist_to_xml(root_node2, &plist_xml2, &size_out2);
if (!plist_xml2)
{
printf("PList XML writing failed\n");
return 8;
}
- else
- printf("PList XML writing succeeded\n");
+ printf("PList XML writing succeeded\n");
if (plist_xml2)
{
FILE *oplist = NULL;