Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-02 16:28:27 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-02 16:28:27 +0400
commit20c2e90222ac0b12a4cc3fb9b9455232f6e250ae (patch)
treeaad232b129a6822f383076777a82da5abb1c3c5f /lib/api
parent9ccef9a7b3c8bd007c897467c0fb944831db3fab (diff)
Refactor finders. Prevent circular dependency error
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/issues.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb
index 299fd7e2399..043ce04d321 100644
--- a/lib/api/issues.rb
+++ b/lib/api/issues.rb
@@ -6,9 +6,9 @@ module API
helpers do
def filter_issues_state(issues, state = nil)
case state
- when 'opened' then issues.opened
- when 'closed' then issues.closed
- else issues
+ when 'opened' then issues.opened
+ when 'closed' then issues.closed
+ else issues
end
end
end