FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Simplify conditional branch · simoncev/processing@1e4390d · GitHub

Repository navigation

Commit 1e4390d

Browse files
committed
Simplify conditional branch
Checking `editor.tabs.expand` is done just before the block, so this condition is always met.
1 parent 4674080 commit 1e4390d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎java/src/processing/mode/java/JavaInputHandler.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public boolean handlePressed(KeyEvent event) {
160160
textarea.setSelectedText(spaces(tabSize));
161161
event.consume();
162162

163-
} else if (!Preferences.getBoolean("editor.tabs.expand")) {
163+
} else { // !Preferences.getBoolean("editor.tabs.expand")
164164
textarea.setSelectedText("\t");
165165
event.consume();
166166
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL