We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1039ba2 commit c2be4f0Copy full SHA for c2be4f0
QiniuSDK/Common/QNZoneInfo.m
@@ -191,7 +191,17 @@ - (void)toTemporary {
191
}
192
193
- (BOOL)isValid {
194
- return [self.zonesInfo count] > 0 && [self.zonesInfo.firstObject isValid];
+ if ([self.zonesInfo count] == 0) {
195
+ return false;
196
+ }
197
+
198
+ BOOL valid = true;
199
+ for (QNZoneInfo *info in self.zonesInfo) {
200
+ if (![info isValid]) {
201
+ valid = false;
202
203
204
+ return valid;
205
206
207
- (id)copyWithZone:(NSZone *)zone {
0 commit comments