Allow default values for boolean config settings

This commit is contained in:
Philipp Wolfer 2024-01-13 13:18:52 +01:00
parent 6ac2b4f142
commit 7666ca53a7
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
4 changed files with 10 additions and 12 deletions

View file

@ -56,7 +56,7 @@ func (b *MalojaApiBackend) FromConfig(config *config.ServiceConfig) models.Backe
config.GetString("server-url"),
config.GetString("token"),
)
b.nofix = config.GetBool("nofix")
b.nofix = config.GetBool("nofix", false)
return b
}