Skip to content

Commit 1eaf708

Browse files
committed
Simplify expression
1 parent 79a6fcd commit 1eaf708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kitty/cocoa_window.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ - (void)openFilesFromPasteboard:(NSPasteboard *)pasteboard type:(int)type {
368368
bool
369369
cocoa_alt_option_key_pressed(NSUInteger flags) {
370370
NSUInteger q = (OPT(macos_option_as_alt) == 1) ? NSRightAlternateKeyMask : NSLeftAlternateKeyMask;
371-
return ((q & flags) == q) ? true : false;
371+
return (q & flags) == q;
372372
}
373373

374374
void

0 commit comments

Comments
 (0)