lib/commit: Fix indentation in file commit code
authorColin Walters <walters@verbum.org>
Mon, 16 Oct 2017 20:07:30 +0000 (16:07 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 17 Oct 2017 16:43:02 +0000 (16:43 +0000)
No functional changes; the indentation was off here and it was
confusing me working on another patch.

Closes: #1280
Approved by: jlebon

src/libostree/ostree-repo-commit.c

index f0cc8bf44c3d2edf89a3c8cf36767543a3902e9f..729b1b91b79237b0005768407ce039228533223b 100644 (file)
@@ -2881,21 +2881,21 @@ write_directory_content_to_mtree_internal (OstreeRepo                  *self,
                 }
             }
 
-            if (!ostree_raw_file_to_content_stream (file_input,
-                                                    modified_info, xattrs,
-                                                    &file_object_input, &file_obj_length,
-                                                    cancellable, error))
-              return FALSE;
-            g_autofree guchar *child_file_csum = NULL;
-            if (!ostree_repo_write_content (self, NULL, file_object_input, file_obj_length,
+          if (!ostree_raw_file_to_content_stream (file_input,
+                                                  modified_info, xattrs,
+                                                  &file_object_input, &file_obj_length,
+                                                  cancellable, error))
+            return FALSE;
+          g_autofree guchar *child_file_csum = NULL;
+          if (!ostree_repo_write_content (self, NULL, file_object_input, file_obj_length,
                                           &child_file_csum, cancellable, error))
-              return FALSE;
+            return FALSE;
 
-            char tmp_checksum[OSTREE_SHA256_STRING_LEN+1];
-            ostree_checksum_inplace_from_bytes (child_file_csum, tmp_checksum);
-            if (!ostree_mutable_tree_replace_file (mtree, name, tmp_checksum,
-                                                   error))
-              return FALSE;
+          char tmp_checksum[OSTREE_SHA256_STRING_LEN+1];
+          ostree_checksum_inplace_from_bytes (child_file_csum, tmp_checksum);
+          if (!ostree_mutable_tree_replace_file (mtree, name, tmp_checksum,
+                                                 error))
+            return FALSE;
         }
 
       /* Process delete_after_commit. In the adoption case though, we already