Skip to content

Commit e1ab063

Browse files
algolia-botmillotp
andcommitted
fix(specs): allow one sided rule validity (generated)
algolia/api-clients-automation#5060 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent c28cdd8 commit e1ab063

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/algolia/models/recommend/time_range.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,10 @@ def initialize(attributes = {})
6262

6363
if attributes.key?(:from)
6464
self.from = attributes[:from]
65-
else
66-
self.from = nil
6765
end
6866

6967
if attributes.key?(:_until)
7068
self._until = attributes[:_until]
71-
else
72-
self._until = nil
7369
end
7470
end
7571

lib/algolia/models/search/time_range.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,10 @@ def initialize(attributes = {})
6262

6363
if attributes.key?(:from)
6464
self.from = attributes[:from]
65-
else
66-
self.from = nil
6765
end
6866

6967
if attributes.key?(:_until)
7068
self._until = attributes[:_until]
71-
else
72-
self._until = nil
7369
end
7470
end
7571

0 commit comments

Comments
 (0)