Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[macos]fix clang-tidy warning for NSAssert
  • Loading branch information
hellohuanlin committed Nov 14, 2024
commit ab1ad742cb67399bdceefa0a1f7c5089e9fd5501
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ - (void)handleEvent:(NSEvent*)event callback:(FlutterAsyncKeyCallback)callback {
default: {
NSAssert(false, @"Unexpected key event type (got %lu).", event.type);
callback(false);
// This should not happen. Return to suppress clang-tidy warning on `type` being nil.
return;
}
}
_previouslyPressedFlags = modifierFlags;
Expand Down