@@ -51,8 +51,8 @@ def initialize(backends)
51
51
halt 400 , json ( { :error => 'The number of version constraints in the query does not match the number of module names' } ) unless params [ :module ]
52
52
author , name = params [ :module ] . split '-'
53
53
releases = releases ( author , name )
54
- halt 200 , json ( { :pagination => { :next => false } , :results => [ ] } ) unless releases
55
- json :pagination => { :next => false , :total => releases . count } , :results => releases
54
+ halt 200 , json ( { :pagination => { :next => nil } , :results => [ ] } ) unless releases
55
+ json :pagination => { :next => nil , :total => releases . count } , :results => releases
56
56
end
57
57
58
58
get '/v3/files/*' do
@@ -86,8 +86,8 @@ def initialize(backends)
86
86
backend . query_metadata ( query )
87
87
end . flatten . compact . uniq
88
88
modules = metadata . empty? ? nil : get_modules ( metadata )
89
- halt 200 , json ( { :pagination => { :next => false } , :results => [ ] } ) unless modules
90
- json :pagination => { :next => false , :total => modules . count } , :results => modules
89
+ halt 200 , json ( { :pagination => { :next => nil } , :results => [ ] } ) unless modules
90
+ json :pagination => { :next => nil , :total => modules . count } , :results => modules
91
91
end
92
92
93
93
get '/v3/users/:author' do
0 commit comments