Delete unnecessary if statement 03/199403/1
authormk5004.lee <mk5004.lee@samsung.com>
Mon, 11 Feb 2019 07:32:17 +0000 (16:32 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Mon, 11 Feb 2019 07:32:17 +0000 (16:32 +0900)
Change-Id: Ibd4fa31b1ba5897ebc7c5adbef344a18b994f192
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
parser/complication_parser_plugin_internal.cc

index b3957de..02f6bf1 100644 (file)
@@ -186,9 +186,7 @@ int check_db(uid_t uid) {
 
   if (_check_table_exist(db)) {
     if (_create_table(db)) {
-      if (db)
-        sqlite3_close_v2(db);
-
+      sqlite3_close_v2(db);
       LOGE("Fail to create table");
       return -1;
     }