From 72fbc6825675c083bff7a31b0f14b7caa94360ca Mon Sep 17 00:00:00 2001 From: comp500 Date: Tue, 7 Jun 2022 03:23:41 +0100 Subject: [PATCH] Omit mode when empty (equivalent to mode "url") --- core/mod.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mod.go b/core/mod.go index 6ce570a..69a86a9 100644 --- a/core/mod.go +++ b/core/mod.go @@ -32,8 +32,8 @@ type ModDownload struct { URL string `toml:"url,omitempty"` HashFormat string `toml:"hash-format"` Hash string `toml:"hash"` - // Mode defaults to modeURL (i.e. use URL) - Mode string `toml:"mode"` + // Mode defaults to modeURL (i.e. use URL when omitted or empty) + Mode string `toml:"mode,omitempty"` } // ModOption specifies optional metadata for this mod file