Commit e1463d1

mokha <mokha@cisco.com>
2018-02-26 23:01:15
shrink truncate.
1 parent 049c1ef
Changed files (1)
lib
saml
kit
lib/saml/kit/cli/report.rb
@@ -26,11 +26,7 @@ module Saml
         private
 
         def truncate(text, max: 50)
-          if text.length >= max
-            "#{text[0..max]}..."
-          else
-            text
-          end
+          text.length >= max ? "#{text[0..max]}..." : text
         end
 
         def build_table_for(document)