remove unnecessary if/else

Co-authored-by: Marko Mikulicic <mkm@bitnami.com>
This commit is contained in:
Daniel Arteaga
2020-06-30 15:31:08 +02:00
committed by GitHub
parent b7ed2764cd
commit c9c82d6a17
+1 -5
View File
@@ -43,11 +43,7 @@ log() {
is_snapshot() {
local -r dist_snapshot_regex="^(jessie|stretch|buster|unstable)-snapshot"
if [[ $1 =~ $dist_snapshot_regex ]]; then
true
else
false
fi
[[ $1 =~ $dist_snapshot_regex ]]
}
build() {