Commit a68735d4 authored by Mike Greiling's avatar Mike Greiling

use Snippet.none in favor of nil to allow chaining

parent 68787297
No related merge requests found
......@@ -51,7 +51,7 @@ class SnippetsFinder
def by_scope(snippets, scope = nil, include_private = false)
case scope.to_s
when 'are_private'
include_private ? snippets.are_private : nil
include_private ? snippets.are_private : Snippet.none
when 'are_internal'
snippets.are_internal
when 'are_public'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment