Skip to content

Commit

Permalink
Merge pull request #444 from mostazomarc/431-fix-void-function-in-ter…
Browse files Browse the repository at this point in the history
…nary

Removed void_function_in_ternary from disabled rules in .swiftint.yml
  • Loading branch information
andrewtavis authored May 18, 2024
2 parents 9de8841 + b6dedcf commit f87e9ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ disabled_rules:
- opening_brace
- blanket_disable_command
- for_where
- void_function_in_ternary
- empty_enum_arguments
- closure_parameter_position

Expand Down
6 changes: 5 additions & 1 deletion Keyboards/KeyboardsBase/KeyboardViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2571,7 +2571,11 @@ class KeyboardViewController: UIInputViewController {
capsLockPossible = true

case "123", ".?123":
usingExpandedKeyboard == true ? changeKeyboardToSymbolKeys() : changeKeyboardToNumberKeys()
if usingExpandedKeyboard {
changeKeyboardToSymbolKeys()
} else {
changeKeyboardToNumberKeys()
}

case "#+=":
changeKeyboardToSymbolKeys()
Expand Down

0 comments on commit f87e9ab

Please sign in to comment.