Remove unneeded return keyword from last line in Ruby functions

This commit is contained in:
John Bampton
2022-12-27 11:42:48 +10:00
parent 02c576accf
commit 3ba388fc78
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ def clean(output, stderr = false)
result_text = results.join("\n")
result_text += "\n" if ends_with_newline
return result_text
result_text
end
+2 -2
View File
@@ -19,11 +19,11 @@ def cmd_list(s)
end
def cmd(s)
return cmd_list(s).join(' ')
cmd_list(s).join(' ')
end
def cmd_bin(s)
return cmd_list(s).pop
cmd_list(s).pop
end
def shellquote(s)