chore: clang-format (#18088)
* chore: clang-format * chore: remove obsolete native_mate_files.gypi
This commit is contained in:
parent
d2cebc62d1
commit
1abe658ef4
18 changed files with 138 additions and 187 deletions
|
@ -15,8 +15,9 @@ NSArray* ListValueToNSArray(const base::ListValue& value) {
|
|||
if (!base::JSONWriter::Write(value, &json))
|
||||
return nil;
|
||||
NSData* jsonData = [NSData dataWithBytes:json.c_str() length:json.length()];
|
||||
id obj =
|
||||
[NSJSONSerialization JSONObjectWithData:jsonData options:0 error:nil];
|
||||
id obj = [NSJSONSerialization JSONObjectWithData:jsonData
|
||||
options:0
|
||||
error:nil];
|
||||
if (![obj isKindOfClass:[NSArray class]])
|
||||
return nil;
|
||||
return obj;
|
||||
|
@ -67,8 +68,9 @@ NSDictionary* DictionaryValueToNSDictionary(
|
|||
if (!base::JSONWriter::Write(value, &json))
|
||||
return nil;
|
||||
NSData* jsonData = [NSData dataWithBytes:json.c_str() length:json.length()];
|
||||
id obj =
|
||||
[NSJSONSerialization JSONObjectWithData:jsonData options:0 error:nil];
|
||||
id obj = [NSJSONSerialization JSONObjectWithData:jsonData
|
||||
options:0
|
||||
error:nil];
|
||||
if (![obj isKindOfClass:[NSDictionary class]])
|
||||
return nil;
|
||||
return obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue