Skip to content

Commit d47b5a8

Browse files
committed
Remove unecessary null check
1 parent 91886fe commit d47b5a8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/rbslicer/utils/validators.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ def valid_keys?
195195
if !value.is_a?(Array)
196196
raise Exceptions::InvalidQueryException, 'The key \'order\' in '\
197197
'query has a invalid value.'
198-
elsif value.nil?
199-
raise Exceptions::InvalidQueryException, 'The key \'order\' in '\
200-
'query has a null value.'
201198
elsif value.empty?
202199
raise Exceptions::InvalidQueryException, 'The key \'order\' in '\
203200
'query has a empty array.'

0 commit comments

Comments
 (0)