refactor: inline a couple of if statements

Inline a couple of if statements for a shorter, even if not by much,
script.
pull/6/head
d3adb5 2022-05-08 21:22:01 -03:00
rodzic c49e2c17fc
commit 18649e6f87
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 36962FB62A3776A5
1 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -31,9 +31,7 @@ set_config() {
# Don't use default value if the user already set one
if [[ "$is_default" = "true" ]]; then
contained=$( array_contains used_configs "$config_name" )
if [[ "$contained" = "true" ]]; then
apply_value=false
fi
[[ "$contained" = "true" ]] && apply_value=false
fi
if [[ "$apply_value" = "true" ]]; then
@ -118,9 +116,7 @@ fi
####
# Additionnal environement variables
####
if [[ -n "$MUMBLE_VERBOSE" && "$MUMBLE_VERBOSE" = true ]]; then
server_invocation+=( "-v" )
fi
[[ "$MUMBLE_VERBOSE" = true ]] && server_invocation+=( "-v" )
# Make sure the correct config file will be used
server_invocation+=( "-ini" "${CONFIG_FILE}")