From 6f0a680013012b89a578bb525cee72d67bc482ac Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 19 Nov 2012 09:22:45 -0800 Subject: [PATCH] Merge return statements --- src/app/project.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/project.coffee b/src/app/project.coffee index d8df938cc..b2e745328 100644 --- a/src/app/project.coffee +++ b/src/app/project.coffee @@ -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("|")