Linter fixes (error handling, unused constants, raw strings)

This commit is contained in:
comp500
2023-03-10 17:06:48 +00:00
parent da04eb7f13
commit aeae76a569
9 changed files with 30 additions and 19 deletions

View File

@@ -280,7 +280,7 @@ var whitelistedHosts = []string{
}
func canBeIncludedDirectly(mod *core.Mod, restrictDomains bool) bool {
if mod.Download.Mode == "url" || mod.Download.Mode == "" {
if mod.Download.Mode == core.ModeURL || mod.Download.Mode == "" {
if !restrictDomains {
return true
}