Many more Rubocop-inspired code improvements

This commit is contained in:
Maruno17
2021-12-18 19:06:22 +00:00
parent d17fc40a47
commit 13a238cc6a
107 changed files with 651 additions and 652 deletions

View File

@@ -105,12 +105,20 @@ module Console
# status output
def echo_status(status)
echoln (status) ? markup_style('OK', text: :green) : markup_style('FAIL', text: :red)
if status
echoln markup_style('OK', text: :green)
else
echoln markup_style('FAIL', text: :red)
end
end
# completion output
def echo_done(status)
echoln (status) ? markup_style('done', text: :green) : markup_style('error', text: :red)
if status
echoln markup_style('done', text: :green)
else
echoln markup_style('error', text: :red)
end
end
#-----------------------------------------------------------------------------