Code style refactorting
[platform/core/dotnet/launcher.git] / NativeLauncher / installer-plugin / common.cc
index d2c9c3f..6473dc8 100644 (file)
@@ -310,8 +310,10 @@ void create_ni_under_dirs(const char* root_paths[], int count, const char* ignor
       {
         // change owner and groups for generated ni file.
         struct stat info;
-        if (!stat(path, &info)) {
-          if (chown(ni.c_str(), info.st_uid, info.st_gid) == -1) {
+        if (!stat(path, &info))
+        {
+          if (chown(ni.c_str(), info.st_uid, info.st_gid) == -1)
+          {
             _ERR("Failed to change owner and group name");
           }
         }