mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
terminal: remove DevConfig.Validate params
As the `DevConfig.Validate` params are no longer used in the Validate method, we can remove them from the method signature.
This commit is contained in:
parent
66e9d3c46d
commit
aabf8b08e9
3 changed files with 4 additions and 5 deletions
|
|
@ -551,7 +551,7 @@ func loadAndValidateConfig(interceptor signal.Interceptor) (*Config, error) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = cfg.DevConfig.Validate(litDir, cfg.Network)
|
err = cfg.DevConfig.Validate()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@ func defaultDevConfig() *DevConfig {
|
||||||
return &DevConfig{}
|
return &DevConfig{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate checks that all the values set in our DevConfig are valid and uses
|
// Validate checks that all the values set in our DevConfig are valid.
|
||||||
// the passed parameters to override any defaults if necessary.
|
func (c *DevConfig) Validate() error {
|
||||||
func (c *DevConfig) Validate(dbDir, network string) error {
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ func defaultDevConfig() *DevConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate is a no-op function during a production build.
|
// Validate is a no-op function during a production build.
|
||||||
func (c *DevConfig) Validate(_, _ string) error {
|
func (c *DevConfig) Validate() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue