anordal / shellharden

The corrective bash syntax highlighter
Mozilla Public License 2.0
4.63k stars 130 forks source link

Remove "return" and ";" for several functions #6

Closed xyproto closed 6 years ago

xyproto commented 6 years ago

The code does the same thing, but is more elegant (IMO).

According to the top answer here, it's also considered good style, for Rust: https://stackoverflow.com/questions/27961879/why-is-using-return-as-the-last-statement-in-a-function-considered-bad-style