Fix coding rule 96/211796/3
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 9 Aug 2019 07:06:50 +0000 (16:06 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 12 Aug 2019 07:24:28 +0000 (07:24 +0000)
Change-Id: I9d8b2d03d5829278a5451db42a19393e2137eb0a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/wgt/step/pkgmgr/step_generate_xml.cc

index 01a1a9512e75a65c9b31b3eb0e7fb0a948951e2d..dc4dc715af21eac2f27476d0d8d161a5237540c4 100644 (file)
@@ -103,9 +103,8 @@ bool WriteWidgetApplicationAttributesAndElements(
                                  [app](const wgt::parse::AppWidget& widget) {
                                     return widget.id == app->appid;
                                  });
-  if (appwidget == appwidgets.end()) {
+  if (appwidget == appwidgets.end())
     return true;
-  }
 
   // Add extra elements for wgt widget-application
   if (!appwidget->update_period.empty()) {
@@ -359,9 +358,8 @@ common_installer::Step::Status StepGenerateXml::process() {
   xmlTextWriterSetIndent(writer, 1);
 
   Status status = GenerateManifestElement(writer);
-  if (status != Status::OK) {
+  if (status != Status::OK)
     return status;
-  }
 
   xmlTextWriterEndDocument(writer);
   xmlFreeTextWriter(writer);
@@ -386,9 +384,9 @@ common_installer::Step::Status StepGenerateXml::GenerateManifestElement(
   GenerateAuthor(writer);
   GenerateDescription(writer);
   Status status = GenerateApplications(writer);
-  if (status != Status::OK) {
+  if (status != Status::OK)
     return status;
-  }
+
   GeneratePrivilege(writer);
   GenerateProvidesAppDefinedPrivilege(writer);
   GenerateAccount(writer);