Skip to content

Commit 265af1b

Browse files
committed
chore: tweak code
1 parent 06b3d6e commit 265af1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AVOS/Sources/Foundation/File/LCFile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ - (instancetype)initWithLocalPath:(NSString *)localPath
188188
});
189189

190190
NSNumber *fileSize = fileAttributes[NSFileSize];
191-
_rawJSONData[kLCFile_metaData] = fileSize ? @{ kLCFile_size : fileSize } : @{};
191+
_rawJSONData[kLCFile_metaData] = (fileSize != nil) ? @{ kLCFile_size : fileSize } : @{};
192192

193193
_ACL = ({
194194

0 commit comments

Comments
 (0)