mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
Linter fixes (error handling, unused constants, raw strings)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user