fix(lint): packages, helpers, common

This commit is contained in:
Ismo Vuorinen
2025-06-12 00:31:52 +03:00
committed by Ismo Vuorinen
parent b6841a3ae0
commit 7ac2e2f1bf
3 changed files with 7 additions and 3 deletions

View File

@@ -208,6 +208,11 @@ lib::error::throw()
logger::log()
{
local level=$1
if [[ -z "${LOG_LEVELS[$level]:-}" ]]; then
lib::error "Invalid log level: $level"
return 1
fi
shift
local msg=$1