mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
As the `DevConfig.Validate` params are no longer used in the Validate method, we can remove them from the method signature.
18 lines
484 B
Go
18 lines
484 B
Go
//go:build !dev
|
|
|
|
package terminal
|
|
|
|
// DevConfig is an empty shell struct that allows us to build without the dev
|
|
// tag. This struct is embedded in the main Config struct, and it adds no new
|
|
// functionality in a production build.
|
|
type DevConfig struct{}
|
|
|
|
// defaultDevConfig returns an empty DevConfig struct.
|
|
func defaultDevConfig() *DevConfig {
|
|
return &DevConfig{}
|
|
}
|
|
|
|
// Validate is a no-op function during a production build.
|
|
func (c *DevConfig) Validate() error {
|
|
return nil
|
|
}
|