mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
chore: ugh, lint fix... (#7275)
* chore: ugh, lint fix... Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> * more lint fixes Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> --------- Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
parent
0c8798fce3
commit
25be2f26fc
14 changed files with 48 additions and 48 deletions
|
@ -62,7 +62,7 @@ func splitModule(arg string) (module, version string, err error) {
|
|||
err = fmt.Errorf("module name is required")
|
||||
}
|
||||
|
||||
return
|
||||
return module, version, err
|
||||
}
|
||||
|
||||
func cmdAddPackage(fl Flags) (int, error) {
|
||||
|
@ -217,7 +217,7 @@ func getModules() (standard, nonstandard, unknown []moduleInfo, err error) {
|
|||
bi, ok := debug.ReadBuildInfo()
|
||||
if !ok {
|
||||
err = fmt.Errorf("no build info")
|
||||
return
|
||||
return standard, nonstandard, unknown, err
|
||||
}
|
||||
|
||||
for _, modID := range caddy.Modules() {
|
||||
|
@ -260,7 +260,7 @@ func getModules() (standard, nonstandard, unknown []moduleInfo, err error) {
|
|||
nonstandard = append(nonstandard, caddyModGoMod)
|
||||
}
|
||||
}
|
||||
return
|
||||
return standard, nonstandard, unknown, err
|
||||
}
|
||||
|
||||
func listModules(path string) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue