From 40916407517f4bdb75a295caf29e02d4f403349b Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 23 Sep 2017 11:07:32 +0200 Subject: style: rubocop mostly auto-correct --- lib/nickserver/hkp/key_info.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'lib/nickserver/hkp/key_info.rb') diff --git a/lib/nickserver/hkp/key_info.rb b/lib/nickserver/hkp/key_info.rb index d4ecf10..ed38643 100644 --- a/lib/nickserver/hkp/key_info.rb +++ b/lib/nickserver/hkp/key_info.rb @@ -32,26 +32,22 @@ module Nickserver::Hkp def creationdate @creationdate ||= begin - if @creationdate_s - Time.at(@creationdate_s.to_i) - end + Time.at(@creationdate_s.to_i) if @creationdate_s end end def expirationdate @expirationdate ||= begin - if @expirationdate_s - Time.at(@expirationdate_s.to_i) - end + Time.at(@expirationdate_s.to_i) if @expirationdate_s end end def rsa? - @algo == "1" + @algo == '1' end def dsa? - @algo == "17" + @algo == '17' end def revoked? @@ -66,5 +62,4 @@ module Nickserver::Hkp @flags =~ /e/ end end - end -- cgit v1.2.3