浏览代码

change variable name

Marino Faggiana 8 年之前
父节点
当前提交
9394d101c1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      iOSClient/AppDelegate.m

+ 3 - 3
iOSClient/AppDelegate.m

@@ -431,12 +431,12 @@
     NSString *pushToken = [[[[deviceToken description] stringByReplacingOccurrencesOfString: @"<" withString: @""] stringByReplacingOccurrencesOfString: @">" withString: @""] stringByReplacingOccurrencesOfString: @" " withString: @""];
     NSString *pushTokenHash = [[CCCrypto sharedManager] createSHA512:pushToken];
     
-    NSDictionary *keys = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:k_nextcloudDevicePushKey ofType:@"plist"]];
+    NSDictionary *devicePushKey = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:k_nextcloudDevicePushKey ofType:@"plist"]];
     
 #ifdef DEBUG
-    NSString *devicePublicKey = [keys objectForKey:@"devicePublicKeyDevelopment"];
+    NSString *devicePublicKey = [devicePushKey objectForKey:@"devicePublicKeyDevelopment"];
 #else
-    NSString *devicePublicKey = [keys objectForKey:@"devicePublicKeyProduction"];
+    NSString *devicePublicKey = [devicePushKey objectForKey:@"devicePublicKeyProduction"];
 #endif
     
     NSLog(@"DEVICE TOKEN = %@", pushToken);