Add explicit return after for loop

This commit is contained in:
Kevin Sawicki
2015-03-19 10:53:55 -07:00
parent d9a5aff919
commit a9803d3c4d
3 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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
###

View File

@@ -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