Fix low-hanging rubocop gripes (#8458)
* rubocop: quit being so picky * rubocop: miscellany * rubocop: prefer present to blank
This commit is contained in:
		
				
					committed by
					
						 Eugen Rochko
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							a791bac153
						
					
				
				
					commit
					da13fa5021
				
			| @ -9,7 +9,7 @@ module Expireable | ||||
|     attr_reader :expires_in | ||||
|  | ||||
|     def expires_in=(interval) | ||||
|       self.expires_at = interval.to_i.seconds.from_now unless interval.blank? | ||||
|       self.expires_at = interval.to_i.seconds.from_now if interval.present? | ||||
|       @expires_in     = interval | ||||
|     end | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user