Merge pull request #2060 from zed-industries/fix-ci-fail

Fix mismatched return types on CI
This commit is contained in:
Mikayla Maki 2023-01-20 18:28:59 -08:00 committed by GitHub
commit 50d37e1ae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1438,7 +1438,11 @@ extern "C" fn accepts_first_mouse(this: &Object, _: Sel, _: id) -> BOOL {
unsafe {
let state = get_window_state(this);
let state_borrow = state.as_ref().borrow();
return state_borrow.kind == WindowKind::PopUp;
return if state_borrow.kind == WindowKind::PopUp {
YES
} else {
NO
};
}
}