From 1a22a281f8775494c7cb13a90250c7c3ef12bb97 Mon Sep 17 00:00:00 2001 From: lvlcn-t <75443136+lvlcn-t@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:47:54 +0200 Subject: [PATCH] chore: rm unnecessary pre-commit hooks --- .pre-commit-config.yaml | 7 ------- config/loader.go | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 940d023..d1803d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,13 +31,6 @@ repos: - id: golangci-lint-repo-mod args: [--config, .golangci.yaml, --, --fix] - - repo: https://github.com/norwoodj/helm-docs - rev: v1.13.1 - hooks: - - id: helm-docs - args: - - --chart-search-root=chart - # If this is used for business, a free license is required. # It can be obtained from https://gitleaks.io/products.html - repo: https://github.com/gitleaks/gitleaks diff --git a/config/loader.go b/config/loader.go index dd80a01..167b4d9 100644 --- a/config/loader.go +++ b/config/loader.go @@ -101,8 +101,8 @@ func SetBinaryName(name string) { // SetFs replaces the default filesystem with the provided one. // This may only be used for testing purposes. // This function is not safe for concurrent use. -func SetFs(fs afero.Fs) { - fsys = fs +func SetFs(filesystem afero.Fs) { + fsys = filesystem } // defaultFallback returns the default fallback path for the configuration file.