From 9641a074d9371931d482620364dfc45d9509c677 Mon Sep 17 00:00:00 2001 From: stoyanK7 Date: Sat, 23 Jul 2022 16:56:59 +0300 Subject: [PATCH] Issue #11637: Resolve shellcheck SC2269 --- .ci/validation.sh | 4 +--- .shellcheckrc | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.ci/validation.sh b/.ci/validation.sh index 208ffef7a68..4e325c5dc8c 100755 --- a/.ci/validation.sh +++ b/.ci/validation.sh @@ -53,9 +53,7 @@ check-missing-pitests) for item in "${list[@]}" do item=${item//\./\/} - if [[ $item == */\* ]] ; then - item=$item - else + if [[ $item != */\* ]] ; then if [[ $item != *\* ]] ; then item="$item.java" else diff --git a/.shellcheckrc b/.shellcheckrc index 8b66a8ed276..bd16c502d17 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -26,7 +26,6 @@ disable=SC2088 # (warning): Tilde does not expand in quotes. Use $HOME. disable=SC2005 # (style): Useless echo? Instead of 'echo $(cmd)', just use 'cmd'. disable=SC2015 # (info): Note that A && B || C is not if-then-else. C may run when A is true. disable=SC2026 # (info): This word is outside of quotes. -disable=SC2269 # (info): This variable is assigned to itself, so the assignment does nothing. disable=SC2230 # which is non-standard. Use builtin 'command -v' instead. disable=SC2153 # Possible misspelling: LINKED_ISSUES may not be assigned, but LINKED_ISSUE is. disable=SC1004 # This backslash+linefeed is literal.