Skip to content

Files

Latest commit

 

History

History
25 lines (15 loc) · 449 Bytes

SC1051.md

File metadata and controls

25 lines (15 loc) · 449 Bytes

Pattern: Use of ; after then

Issue: -

Description

then keywords should not be followed by semicolons. It's not valid shell syntax.

You can follow them directly with a line break or another command.

Example of incorrect code:

if true; then; echo "Hi"; fi

Example of correct code:

if true; then echo "Hi"; fi

Further Reading