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:
Viktor Torstensson 2026-05-12 11:01:05 +02:00
parent 66e9d3c46d
commit aabf8b08e9
No known key found for this signature in database
GPG key ID: 961CC8259AE675D4
3 changed files with 4 additions and 5 deletions

View file

@ -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 {
return nil, err
}

View file

@ -15,8 +15,7 @@ func defaultDevConfig() *DevConfig {
return &DevConfig{}
}
// Validate checks that all the values set in our DevConfig are valid and uses
// the passed parameters to override any defaults if necessary.
func (c *DevConfig) Validate(dbDir, network string) error {
// Validate checks that all the values set in our DevConfig are valid.
func (c *DevConfig) Validate() error {
return nil
}

View file

@ -13,6 +13,6 @@ func defaultDevConfig() *DevConfig {
}
// Validate is a no-op function during a production build.
func (c *DevConfig) Validate(_, _ string) error {
func (c *DevConfig) Validate() error {
return nil
}