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:
@@ -595,7 +595,7 @@ func CreateDownloadSession(mods []*Mod, hashesToObtain []string) (DownloadSessio
|
||||
|
||||
// Get necessary metadata for all files
|
||||
for _, mod := range mods {
|
||||
if mod.Download.Mode == "url" || mod.Download.Mode == "" {
|
||||
if mod.Download.Mode == ModeURL || mod.Download.Mode == "" {
|
||||
downloadSession.downloadTasks = append(downloadSession.downloadTasks, downloadTask{
|
||||
mod: mod,
|
||||
url: mod.Download.URL,
|
||||
|
||||
Reference in New Issue
Block a user