From c074d73813531a8ef588b24c9a0c4038505bd869 Mon Sep 17 00:00:00 2001 From: Sergey Ivanov Date: Fri, 17 Sep 2021 13:02:22 +0100 Subject: [PATCH] fix: remove dead code from terraform-docs script terraform-docs does not care about tfvars, the variable is unused and probably was originally copy-pasted from another hook. --- terraform_docs.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/terraform_docs.sh b/terraform_docs.sh index 8c7076bcf..1eb3c0526 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -93,7 +93,6 @@ terraform_docs() { local -a -r files=("$@") declare -a paths - declare -a tfvars_files local index=0 local file_with_path @@ -102,10 +101,6 @@ terraform_docs() { paths[index]=$(dirname "$file_with_path") - if [[ "$file_with_path" == *".tfvars" ]]; then - tfvars_files+=("$file_with_path") - fi - ((index += 1)) done