mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
We can print the table name without any extra check as we already returned early in case there are no results.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
5060605626
commit
44f8fcb600
1 changed files with 1 additions and 3 deletions
|
@ -128,9 +128,7 @@ scanDatabaseTable() {
|
||||||
wbMatch=true
|
wbMatch=true
|
||||||
|
|
||||||
# Print table name
|
# Print table name
|
||||||
if [[ ! -z "${result}" ]]; then
|
|
||||||
echo " ${matchType^} found in ${COL_BOLD}${table^}${COL_NC}"
|
echo " ${matchType^} found in ${COL_BOLD}${table^}${COL_NC}"
|
||||||
fi
|
|
||||||
|
|
||||||
# Loop over results and print them
|
# Loop over results and print them
|
||||||
mapfile -t results <<< "${result}"
|
mapfile -t results <<< "${result}"
|
||||||
|
|
Loading…
Reference in a new issue