diff --git a/SC1048.md b/SC1048.md index 5aabddf..80dd26a 100644 --- a/SC1048.md +++ b/SC1048.md @@ -8,9 +8,7 @@ then # TODO: handle this fi ``` - ### Correct code: - ```sh if [ -e foo ] then @@ -19,14 +17,13 @@ then fi # Or use the no-op colon operator ":" -```sh if [ -e foo ] then # TODO: handle this : fi ``` -``` + ### Rationale: Shells do not allow empty `then` clauses. They need at least one command (and comments are not commands).