cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [2/8] git commit: ios: Style: Don't make code look unreachable
Date Fri, 04 Apr 2014 17:11:53 GMT
ios: Style: Don't make code look unreachable


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/0af8049f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/0af8049f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/0af8049f

Branch: refs/heads/dev
Commit: 0af8049f0c36cba8d108bf713d6e71112427493b
Parents: 17a4991
Author: Ian Clelland <iclelland@chromium.org>
Authored: Tue Apr 1 12:56:52 2014 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Fri Apr 4 09:27:47 2014 -0400

----------------------------------------------------------------------
 src/ios/CDVLocalFilesystem.m | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/0af8049f/src/ios/CDVLocalFilesystem.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocalFilesystem.m b/src/ios/CDVLocalFilesystem.m
index 2b7f940..6b80ad3 100644
--- a/src/ios/CDVLocalFilesystem.m
+++ b/src/ios/CDVLocalFilesystem.m
@@ -121,8 +121,9 @@
 - (CDVFilesystemURL *)URLforFullPath:(NSString *)fullPath
 {
     if (fullPath) {
-        if ([fullPath hasPrefix:@"/"])
-        return [CDVFilesystemURL fileSystemURLWithString:[NSString stringWithFormat:@"%@://localhost/%@%@",
kCDVFilesystemURLPrefix, self.name, fullPath]];
+        if ([fullPath hasPrefix:@"/"]) {
+            return [CDVFilesystemURL fileSystemURLWithString:[NSString stringWithFormat:@"%@://localhost/%@%@",
kCDVFilesystemURLPrefix, self.name, fullPath]];
+        }
         return [CDVFilesystemURL fileSystemURLWithString:[NSString stringWithFormat:@"%@://localhost/%@/%@",
kCDVFilesystemURLPrefix, self.name, fullPath]];
     }
     return nil;


Mime
View raw message