From: SukHyung, Kang Date: Wed, 9 Dec 2015 05:20:35 +0000 (+0900) Subject: change code to apply coding rules X-Git-Tag: submit/tizen/20151209.092103^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F53737%2F1;p=platform%2Fcore%2Fapi%2Fapp-manager.git change code to apply coding rules Change-Id: Ic023ec264402270c908d511093b9306f1ca3ff1d Signed-off-by: SukHyung, Kang --- diff --git a/tool/main.c b/tool/main.c index fba4867..48cb673 100644 --- a/tool/main.c +++ b/tool/main.c @@ -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; }