From df08e47bdc80c630db3875e96c3f6d8290241f9f Mon Sep 17 00:00:00 2001 From: pimlie Date: Thu, 9 Jan 2025 11:51:01 +0100 Subject: [PATCH] chore: code style --- plugins/sensors/turbostat_ | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/sensors/turbostat_ b/plugins/sensors/turbostat_ index fe368476..8f769fd1 100755 --- a/plugins/sensors/turbostat_ +++ b/plugins/sensors/turbostat_ @@ -158,18 +158,18 @@ function is_config { # Check if element exists in array function in_array { - local e match - match="$1" - shift - for e; do [[ "$e" == "$match" ]] && return 0; done - return 1 + local e match + match="$1" + shift + for e; do [[ "$e" == "$match" ]] && return 0; done + return 1 } # Join array elements by separator function join { - local IFS="$1" - shift - echo "$*" + local IFS="$1" + shift + echo "$*" } # Check if graph was requested