ibireme 9 년 전
부모
커밋
1cce46a4a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      YYWebImage/Cache/YYKVStorage.m

+ 1 - 1
YYWebImage/Cache/YYKVStorage.m

@@ -716,8 +716,8 @@ static UIApplication *_YYSharedApplication() {
         if (![self _dbOpen] || ![self _dbInitialize]) {
             [self _dbClose];
             NSLog(@"YYKVStorage init error: fail to open sqlite db.");
+            return nil;
         }
-        return nil;
     }
     [self _fileEmptyTrashInBackground]; // empty the trash if failed at last time
     return self;