Skip to content

Commit

Permalink
fix: do not check Beta class, since it is Bool in Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jan 19, 2024
1 parent 51b9c81 commit 95ea1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Easydict/Feature/Configuration/EZConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ - (void)setBeta:(BOOL)beta {
[NSUserDefaults mm_write:stringValue forKey:EZBetaFeatureKey];
}
- (BOOL)isBeta {
NSString *stringValue = [NSUserDefaults mm_readString:EZBetaFeatureKey defaultValue:@"0"];
NSString *stringValue = [NSUserDefaults mm_read:EZBetaFeatureKey];
BOOL isBeta = [stringValue boolValue];
return isBeta;
}
Expand Down

0 comments on commit 95ea1db

Please sign in to comment.