From aabf8b08e9748dd9921db531d823e239a6160d02 Mon Sep 17 00:00:00 2001 From: Viktor Torstensson Date: Tue, 12 May 2026 11:01:05 +0200 Subject: [PATCH] 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. --- config.go | 2 +- config_dev.go | 5 ++--- config_prod.go | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config.go b/config.go index 837eeddd..a503323e 100644 --- a/config.go +++ b/config.go @@ -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 } diff --git a/config_dev.go b/config_dev.go index 62d83138..6eb53c60 100644 --- a/config_dev.go +++ b/config_dev.go @@ -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 } diff --git a/config_prod.go b/config_prod.go index d5cd3f5b..0c2993fa 100644 --- a/config_prod.go +++ b/config_prod.go @@ -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 }