diff options
author | Tim Smith <tsmith@chef.io> | 2018-05-18 11:24:27 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-05-18 11:24:27 -0700 |
commit | 34c228b7bf6497aaac34cbb5ce37dcb598e04d6c (patch) | |
tree | 8a789f9df0fc79bd6b1ab225a5b1c106db252263 | |
parent | bcf5b1f17ae24ebac4a9ad2a9ccb7993cf027828 (diff) | |
download | ohai-34c228b7bf6497aaac34cbb5ce37dcb598e04d6c.tar.gz |
Remove unnecessary returns
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/mixin/seconds_to_human.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ohai/mixin/seconds_to_human.rb b/lib/ohai/mixin/seconds_to_human.rb index aa7bb1e7..ec8ac769 100644 --- a/lib/ohai/mixin/seconds_to_human.rb +++ b/lib/ohai/mixin/seconds_to_human.rb @@ -35,15 +35,15 @@ module Ohai seconds -= 60 * minutes if days > 1 - return sprintf("%d days %02d hours %02d minutes %02d seconds", days, hours, minutes, seconds) + sprintf("%d days %02d hours %02d minutes %02d seconds", days, hours, minutes, seconds) elsif days == 1 - return sprintf("%d day %02d hours %02d minutes %02d seconds", days, hours, minutes, seconds) + sprintf("%d day %02d hours %02d minutes %02d seconds", days, hours, minutes, seconds) elsif hours > 0 - return sprintf("%d hours %02d minutes %02d seconds", hours, minutes, seconds) + sprintf("%d hours %02d minutes %02d seconds", hours, minutes, seconds) elsif minutes > 0 - return sprintf("%d minutes %02d seconds", minutes, seconds) + sprintf("%d minutes %02d seconds", minutes, seconds) else - return sprintf("%02d seconds", seconds) + sprintf("%02d seconds", seconds) end end end |