change code to apply coding rules 37/53737/1 accepted/tizen/mobile/20151210.025208 accepted/tizen/tv/20151210.024725 accepted/tizen/wearable/20151210.024751 submit/tizen/20151209.092103
authorSukHyung, Kang <shine.kang@samsung.com>
Wed, 9 Dec 2015 05:20:35 +0000 (14:20 +0900)
committerSukHyung, Kang <shine.kang@samsung.com>
Wed, 9 Dec 2015 05:24:29 +0000 (14:24 +0900)
Change-Id: Ic023ec264402270c908d511093b9306f1ca3ff1d
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
tool/main.c

index fba4867..48cb673 100644 (file)
@@ -69,9 +69,8 @@ static int _get_appinfo(const char *app_id)
        fprintf(stderr, "type    = [%s]\n", type);
 
        ret = app_info_destroy(app_info);
-       if (ret != APP_MANAGER_ERROR_NONE) {
+       if (ret != APP_MANAGER_ERROR_NONE)
                return APP_MANAGER_ERROR_IO_ERROR;
-       }
 
        free(appid);
        free(label);
@@ -88,15 +87,13 @@ int main(int argc, char** argv)
 
        if (2 == argc) {
                ret = _get_appinfo(argv[1]);
-       }
-       else {
+       } else {
                _print_help(argv[0]);
                return EXIT_FAILURE;
        }
 
-       if (ret != APP_MANAGER_ERROR_NONE) {
+       if (ret != APP_MANAGER_ERROR_NONE)
                fprintf(stderr, "There are some problems\n");
-       }
 
        return EXIT_SUCCESS;
 }