From 45b2713b656de7b202542d05dd87396a2dd1926b Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 21 Dec 2017 14:39:50 -0800 Subject: [PATCH] Revert f088f85^...f088f85 on SC1072 --- SC1072.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/SC1072.md b/SC1072.md index 50f2cbc..1f75e58 100644 --- a/SC1072.md +++ b/SC1072.md @@ -3,5 +3,3 @@ *Note: There is a [known bug](../issues/1036) in the current version when [directives](../wiki/Directive) appear within `then` clauses of `if` blocks that causes Shellcheck to report SC1072 on otherwise valid code. Avoid using directives within `then` clauses - instead place them at the top of the `if` block or another enclosing block. This is fixed on the [online version](https://www.shellcheck.net/) and the next release.* See [Parser Error](https://github.com/koalaman/shellcheck/wiki/Parser-Error). - -This error occurs in Bash when you put `then` after `else` in an if then else. Else does not need a `then` and it should be removed.