libisu: refactoring: unify indentation in isu_pkg_info_free function 12/318112/1
authorAdam Michalski <a.michalski2@partner.samsung.com>
Tue, 24 Sep 2024 17:42:49 +0000 (19:42 +0200)
committerAdam Michalski <a.michalski2@partner.samsung.com>
Tue, 24 Sep 2024 17:42:49 +0000 (19:42 +0200)
We want to stick to a consistent style of indentation and comments
throughout the entire project. This commit removes unnecessary
indentations in the isu_pkg_info_free function in libisu.

Change-Id: I3a599127321406cf0609f3bd3c334f171459a115

src/libisu/libisu.c

index 0c2faa0d585aae00b0cd713dbe6a6061949b7e88..d1c9a0fbd234d242a4ebef493158ffe7f7669629 100644 (file)
@@ -149,12 +149,12 @@ isu_result isu_pkg_info_free(isu_pkg_info pkg_info)
 
     struct _isu_pkg_info* pkg_info_i = (struct _isu_pkg_info*)pkg_info;
 
-        if (pkg_info_i != NULL) {
-            for (size_t i = 0; i < pkg_info_i->service_files_len; i++) {
-                free(pkg_info_i->service_files[i]);
-            }
-            free(pkg_info_i->service_files);
+    if (pkg_info_i != NULL) {
+        for (size_t i = 0; i < pkg_info_i->service_files_len; i++) {
+            free(pkg_info_i->service_files[i]);
         }
+        free(pkg_info_i->service_files);
+    }
 
     free(pkg_info_i->name);
     free(pkg_info_i->version);