mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-13 19:15:23 +00:00
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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user