You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/04 19:11:53 UTC

[2/8] git commit: ios: Style: Don't make code look unreachable

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 <ic...@chromium.org>
Authored: Tue Apr 1 12:56:52 2014 -0400
Committer: Ian Clelland <ic...@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;