fix Repository.bySlug
This commit is contained in:
parent
7732482b0e
commit
0acf000c45
|
@ -70,7 +70,7 @@ require 'travis/model'
|
||||||
|
|
||||||
bySlug: (slug) ->
|
bySlug: (slug) ->
|
||||||
repo = $.select(@find().toArray(), (repo) -> repo.get('slug') == slug)
|
repo = $.select(@find().toArray(), (repo) -> repo.get('slug') == slug)
|
||||||
repo || @find(slug: slug)
|
if repo.length > 0 then repo else @find(slug: slug)
|
||||||
|
|
||||||
select: (id) ->
|
select: (id) ->
|
||||||
@find().forEach (repository) ->
|
@find().forEach (repository) ->
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user