mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 13:47:05 +02:00
Allow default values for boolean config settings
This commit is contained in:
parent
6ac2b4f142
commit
7666ca53a7
4 changed files with 10 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue