Change 'function' style (#3364)

This commit is contained in:
Casper 2023-05-26 01:01:41 +02:00 committed by GitHub
parent cf74127f78
commit 37ca0f9ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 233 additions and 466 deletions

View file

@ -3,8 +3,7 @@
# shellcheck source=../scripts/helpers/index.sh
source /usr/local/bin/helpers/index.sh
function _main
{
function _main() {
_require_n_parameters_or_print_usage 1 "${@}"
local MAIL_ACCOUNT="${1}"
@ -13,8 +12,7 @@ function _main
_manage_dovecot_quota_delete "${MAIL_ACCOUNT}"
}
function __usage
{
function __usage() {
printf '%s' "${PURPLE}delquota${RED}(${YELLOW}8${RED})
${ORANGE}USAGE${RESET}
@ -37,8 +35,7 @@ ${ORANGE}EXIT STATUS${RESET}
"
}
function _validate_parameters
{
function _validate_parameters() {
_arg_expect_mail_account
_account_should_already_exist
}