mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Omit mode when empty (equivalent to mode "url")
This commit is contained in:
parent
d34728f347
commit
72fbc68256
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user