fix coding rule violations 25/104625/1
authorJongkyu Koo <jk.koo@samsung.com>
Mon, 12 Dec 2016 03:35:54 +0000 (12:35 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Wed, 14 Dec 2016 02:03:27 +0000 (18:03 -0800)
Change-Id: I2b2d9fe092227e3c0310a9bf2a2f1017d1afa231
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
(cherry picked from commit a7b34e42d91f892fe27ec6d180bf5956fe0ce95e)

server/cal_server_alarm.c
server/db/cal_db_plugin_event.c

index c9daf08..d822e6f 100644 (file)
@@ -939,7 +939,7 @@ static bool __app_matched_cb(app_control_h app_control, const char *package, voi
        }
        GList *cursor = g_list_first(alarm_list);
        for (i = 0; i < len; i++) {
-               if (NULL == cursor){
+               if (NULL == cursor) {
                        ERR("cursor is NULL");
                        break;
                }
index 009e977..eaabdc9 100644 (file)
@@ -972,9 +972,8 @@ static int _cal_db_event_delete_record(int id)
         * Because exception record is deleted first, ret has SQLITE_DONE
         * Trigger in schema deletes exception first, before deleting parent.
         */
-       if (true == is_deleted_exception(id)) {
+       if (true == is_deleted_exception(id))
                return CALENDAR_ERROR_NONE;
-       }
 
        /* get calendar_id, created_ver, original_event_id, recurrence_id */
        ret = _cal_db_event_get_deleted_data(id, &calendar_book_id, &created_ver,