diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-09 12:22:47 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-16 18:41:25 -0700 |
commit | 5d07da13f9909ea500ed8d76e83512f91ea3e461 (patch) | |
tree | d98ace468cdafb4fe0b981ea7254695acdbc13bd /lib/chef/formatters/doc.rb | |
parent | ec4d196b7bdbcf3533a18b28f7a143b0004d0d27 (diff) | |
download | chef-5d07da13f9909ea500ed8d76e83512f91ea3e461.tar.gz |
autofixing Style/MultilineIfThen cop
Diffstat (limited to 'lib/chef/formatters/doc.rb')
-rw-r--r-- | lib/chef/formatters/doc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb index d43f1993b2..7dbbf1d948 100644 --- a/lib/chef/formatters/doc.rb +++ b/lib/chef/formatters/doc.rb @@ -32,9 +32,9 @@ class Chef def pretty_elapsed_time time = elapsed_time - if time < 60 then + if time < 60 message = Time.at(time).utc.strftime("%S seconds") - elsif time < 3600 then + elsif time < 3600 message = Time.at(time).utc.strftime("%M minutes %S seconds") else message = Time.at(time).utc.strftime("%H hours %M minutes %S seconds") |