mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add explicit return after for loop
This commit is contained in:
@@ -32,6 +32,8 @@ class WindowEventHandler
|
||||
unless fs.isDirectorySync(pathToOpen)
|
||||
atom.workspace?.open(pathToOpen, {initialLine, initialColumn})
|
||||
|
||||
return
|
||||
|
||||
when 'update-available'
|
||||
atom.updateAvailable(detail)
|
||||
|
||||
@@ -156,6 +158,7 @@ class WindowEventHandler
|
||||
continue unless tabIndex >= 0
|
||||
|
||||
callback(element, tabIndex)
|
||||
return
|
||||
|
||||
focusNext: =>
|
||||
focusedTabIndex = parseInt($(':focus').attr('tabindex')) or -Infinity
|
||||
|
||||
@@ -222,7 +222,6 @@ class WorkspaceView extends View
|
||||
for editorElement in @panes.element.querySelectorAll('atom-pane > .item-views > atom-text-editor')
|
||||
$(editorElement).view()
|
||||
|
||||
|
||||
###
|
||||
Section: Deprecated
|
||||
###
|
||||
|
||||
@@ -110,6 +110,7 @@ class Workspace extends Model
|
||||
packageNames.push(packageName)
|
||||
for scopeName in includedGrammarScopes ? []
|
||||
addGrammar(atom.grammars.grammarForScopeName(scopeName))
|
||||
return
|
||||
|
||||
editors = @getTextEditors()
|
||||
addGrammar(editor.getGrammar()) for editor in editors
|
||||
|
||||
Reference in New Issue
Block a user