about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorQuint Guvernator <quint@guvernator.net>2018-08-26 13:22:46 -0400
committerEugen Rochko <eugen@zeonfederated.com>2018-08-26 19:22:46 +0200
commitda13fa50215c5153ee199eb8e70e7fa030523a00 (patch)
tree866797a1dd2739ff58f64c5420a557361eb8af65 /app/models/concerns
parenta791bac153cf979adeaf3024d65917dbd699b5d9 (diff)
Fix low-hanging rubocop gripes (#8458)
* rubocop: quit being so picky

* rubocop: miscellany

* rubocop: prefer present to blank
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/expireable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/expireable.rb b/app/models/concerns/expireable.rb
index 444ccdfdb..2c0631476 100644
--- a/app/models/concerns/expireable.rb
+++ b/app/models/concerns/expireable.rb
@@ -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