Skip to content

Commit a048646

Browse files
committed
Silence a spurious error message
1 parent 7098094 commit a048646

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/mgos_sys_config.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,7 @@ void mgos_conf_parse_dev(const char *spec, const char *acl,
189189
goto out;
190190
}
191191
// If it doesn't look like JSON, abort early.
192-
if (data[0] != '{') {
193-
LOG(LL_INFO, ("Not a valid config"));
194-
goto out;
195-
}
192+
if (data[0] != '{') goto out;
196193
s = mg_mk_str_n(data + data_len, data_size - data_len);
197194
end = mg_strchr(s, '\0');
198195
if (end == NULL) {

0 commit comments

Comments
 (0)