mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Merge return statements
This commit is contained in:
@@ -79,9 +79,7 @@ class Project
|
||||
for regex in @ignoredPathRegexes
|
||||
return true if path.match(regex)
|
||||
|
||||
return true if @hideIgnoredFiles and @repo.isPathIgnored(path)
|
||||
|
||||
return false
|
||||
@hideIgnoredFiles and @repo.isPathIgnored(path)
|
||||
|
||||
ignoreFile: (path) ->
|
||||
lastSlash = path.lastIndexOf('/')
|
||||
@@ -94,9 +92,8 @@ class Project
|
||||
return true if name is ignored
|
||||
for regex in @ignoredPathRegexes
|
||||
return true if path.match(regex)
|
||||
return true if @hideIgnoredFiles and @repo.isPathIgnored(path)
|
||||
|
||||
return false
|
||||
@hideIgnoredFiles and @repo.isPathIgnored(path)
|
||||
|
||||
ignorePathRegex: ->
|
||||
@ignoredPathRegexes.map((regex) -> "(#{regex.source})").join("|")
|
||||
|
||||
Reference in New Issue
Block a user