Skip to content

Commit df8301a

Browse files
committed
lib/helpers: slight code clarification
Using the second parameter may make this code read more clearly, so use it.
1 parent 377f92b commit df8301a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/helpers.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,8 @@ function _disable-thing() {
791791
_bash-it-clean-component-cache "${file_type}"
792792

793793
if [[ "$file_entity" == "all" ]]; then
794-
_bash-it-component-pluralize "${file_type}"
795-
printf '%s\n' "$file_entity ${_bash_it_component_pluralize?} disabled."
794+
_bash-it-component-pluralize "${file_type}" file_type
795+
printf '%s\n' "$file_entity ${file_type} disabled."
796796
else
797797
printf '%s\n' "$file_entity disabled."
798798
fi

0 commit comments

Comments
 (0)