Fix coding style in security-manager-cmd.cpp 90/151690/3
authorRafal Krypa <r.krypa@samsung.com>
Thu, 21 Sep 2017 13:19:23 +0000 (15:19 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 28 Sep 2017 08:16:44 +0000 (08:16 +0000)
Change-Id: Iedfee86a382b45c50f8f3717a9e187da09413657
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/cmd/security-manager-cmd.cpp

index 8190af9..ec12306 100644 (file)
@@ -268,9 +268,9 @@ static void parseUserOptions(int argc, char *argv[],
     try {
         if (vm.count("uid"))
             req.uid = vm["uid"].as<uid_t>();
-        if (vm.count("usertype")){
+        if (vm.count("usertype"))
             req.utype = user_type_map.at(vm["usertype"].as<std::string>());
-        else
+        else
             req.utype = SM_USER_TYPE_NORMAL;
     } catch (const std::out_of_range &e) {
         po::error er("Invalid user type found.");
@@ -318,8 +318,7 @@ static int manageUserOperation(const struct user_req &req, std::string operation
     if (operation == "a" || operation == "add") {
         ret = security_manager_user_add(&req);
         operation = "add";
-    }
-    else if (operation == "r" || operation == "remove") {
+    } else if (operation == "r" || operation == "remove") {
         ret = security_manager_user_delete(&req);
         operation = "remove";
     } else {