Skip to content

Commit fef5657

Browse files
committed
refactor(lintian): remove unused variable match
1 parent 284df27 commit fef5657

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

completions/lintian

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
_lintian_tags()
44
{
5-
local match search tags check_files
5+
local search tags check_files
66
_comp_expand_glob check_files '/usr/share/lintian/checks/*.desc'
77
((${#check_files[@]})) || return 0
88

99
tags=$(awk '/^Tag/ { print $2 }' "${check_files[@]}")
1010
if [[ $cur == *, ]]; then
1111
search=${cur//,/ }
1212
for item in $search; do
13-
match=$(command grep -nE "^Tag: $item$" \
14-
"${check_files[@]}" | cut -d: -f1)
1513
tags=$(command sed -e "s/\<$item\>//g" <<<"$tags")
1614
done
1715
COMPREPLY+=($(compgen -W "$tags"))
@@ -50,7 +48,7 @@ _lintian_checks()
5048

5149
_lintian_infos()
5250
{
53-
local match search infos collection_files
51+
local search infos collection_files
5452
_comp_expand_glob collection_files '/usr/share/lintian/collection/*.desc'
5553
((${#collection_files[@]})) || return 0
5654

@@ -59,8 +57,6 @@ _lintian_infos()
5957
if [[ $cur == *, ]]; then
6058
search=${cur//,/ }
6159
for item in $search; do
62-
match=$(command grep -nE "^Collector: $item$" \
63-
"${collection_files[@]}" | cut -d: -f1)
6460
infos=$(command sed -e "s/\<$item\>//g" <<<"$infos")
6561
done
6662
COMPREPLY+=($(compgen -W "$infos"))

0 commit comments

Comments
 (0)