Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #39 from BrianGeppert/eliminate-dead-store
Browse files Browse the repository at this point in the history
Only fill in cacheFolder path string one time.
  • Loading branch information
EddyVerbruggen committed Dec 16, 2014
2 parents 08b48d1 + cba2f12 commit d201d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/MyMainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ - (void)viewDidLoad

// Copy UIWebView to WKWebView so upgrading to the new webview is less of a pain in the ..
NSString* appLibraryFolder = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString* cacheFolder = [appLibraryFolder stringByAppendingPathComponent:@"Caches"];
NSString* cacheFolder;

if ([[NSFileManager defaultManager] fileExistsAtPath:[appLibraryFolder stringByAppendingPathComponent:@"WebKit/LocalStorage/file__0.localstorage"]]) {
cacheFolder = [appLibraryFolder stringByAppendingPathComponent:@"WebKit/LocalStorage"];
Expand Down

0 comments on commit d201d77

Please sign in to comment.