Add linter revive (#554)

* Add linter revive

* Add underscore to variable name to prevent shadowing

* Remove unnecessary leading underscore

* Revert changes to vendor file

* export ConfigFetcher as interface

* no 'yoda conditions'

* rename envsubst

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Lukas
2021-12-01 14:22:06 +01:00
committed by GitHub
parent 494c211910
commit 680d003a29
53 changed files with 340 additions and 345 deletions

View File

@@ -10,7 +10,7 @@ import (
//go:embed dist/*
var webFiles embed.FS
func HttpFS() http.FileSystem {
func HTTPFS() http.FileSystem {
httpFS, err := fs.Sub(webFiles, "dist")
if err != nil {
panic(err)
@@ -20,7 +20,7 @@ func HttpFS() http.FileSystem {
}
func Lookup(path string) (buf []byte, err error) {
file, err := HttpFS().Open(path)
file, err := HTTPFS().Open(path)
if err != nil {
return nil, err
}