Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
KishanBagaria authored and ckerr committed Sep 17, 2022
1 parent cf01734 commit 09176d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shell/browser/ui/cocoa/electron_bundle_mover.mm
Expand Up @@ -181,11 +181,12 @@
bool ElectronBundleMover::IsCurrentAppInApplicationsFolder() {
return IsInApplicationsFolder([[NSBundle mainBundle] bundlePath]);
}

NSString* resolvePath(NSString* path) {
NSString *standardizedPath = [path stringByStandardizingPath];
NSString* standardizedPath = [path stringByStandardizingPath];
char resolved[PATH_MAX];
if (realpath([standardizedPath UTF8String], resolved) == NULL) return path;
if (realpath([standardizedPath UTF8String], resolved) == NULL)
return path;
return @(resolved);
}

Expand Down

0 comments on commit 09176d0

Please sign in to comment.