Fix apply config

This commit is contained in:
Jinzhu 2021-03-04 20:37:39 +08:00
parent adf85d5b82
commit 1476b2f7d4
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ type Config struct {
}
func (c *Config) Apply(config *Config) error {
if config != c {
*config = *c
}
return nil
}