Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit d34356c

Browse files
committed
[ios, macos] Streamlined a string format
1 parent ef71597 commit d34356c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/darwin/src/MGLShape.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ + (nullable instancetype)shapeWithData:(NSData *)data encoding:(NSStringEncoding
1919
} catch (std::runtime_error &err) {
2020
if (outError) {
2121
*outError = [NSError errorWithDomain:MGLErrorDomain code:MGLErrorCodeUnknown userInfo:@{
22-
NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:@"%s", err.what()],
22+
NSLocalizedFailureReasonErrorKey: @(err.what()),
2323
}];
2424
}
2525
return nil;

0 commit comments

Comments
 (0)