mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove unneeded return keyword from last line in Ruby functions
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user