libmm-glib,common-helpers: minor coding style fix in mm_new_iso8601_time()

This commit is contained in:
Aleksander Morgado
2022-10-05 08:45:46 +00:00
parent bfba265009
commit 976a3d4d82

View File

@@ -1789,11 +1789,9 @@ mm_new_iso8601_time (guint year,
} else
dt = g_date_time_new_utc (year, month, day, hour, minute, second);
if (dt == NULL) {
g_set_error (error,
MM_CORE_ERROR,
MM_CORE_ERROR_INVALID_ARGS,
"Invalid input for date: got year:%u, month:%u, day:%u, hour:%u, minute:%u, second:%u",
if (!dt) {
g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_INVALID_ARGS,
"Invalid date: year: %u, month: %u, day: %u, hour: %u, minute: %u, second: %u",
year, month, day, hour, minute, second);
return NULL;
}