Skip to content

Commit 1197462

Browse files
committed
fix: linter
1 parent 277521c commit 1197462

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/helpers.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ function helper::get_function_categories() {
184184
fi
185185

186186
local line_number
187-
line_number=$(grep -n -m1 -E "^[[:space:]]*(function[[:space:]]+)?${function_name}[[:space:]]*\(" "$script" | cut -d: -f1)
187+
line_number=$(
188+
grep -n -m1 -E "^[[:space:]]*(function[[:space:]]+)?${function_name}[[:space:]]*\(" \
189+
"$script" | cut -d: -f1
190+
)
188191
if [[ -z $line_number ]]; then
189192
return
190193
fi

0 commit comments

Comments
 (0)