mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 10:01:33 +00:00
remove redundant cast
This commit is contained in:
parent
9504f50bd4
commit
a819023ab7
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,7 @@ build_global_shortcuts_lookup(void) {
|
|||
for (NSString *key in symbolic_hotkeys) {
|
||||
id obj = symbolic_hotkeys[key];
|
||||
if (![key isKindOfClass:[NSString class]] || ![obj isKindOfClass:[NSDictionary class]]) continue;
|
||||
NSInteger sc = [(NSString*)key integerValue];
|
||||
NSInteger sc = [key integerValue];
|
||||
NSDictionary *sc_value = obj;
|
||||
id enabled = [sc_value objectForKey:@"enabled"];
|
||||
if (!enabled || ![enabled isKindOfClass:[NSNumber class]] || ![(NSNumber*)enabled boolValue]) continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue