mirror of
https://github.com/splitsh/lite.git
synced 2024-06-06 15:52:22 +02:00
fixed variable shadowing
This commit is contained in:
parent
7ed5014241
commit
538f5638df
|
@ -26,7 +26,7 @@ func newState(config *Config, result *Result) (*state, error) {
|
|||
var err error
|
||||
|
||||
// validate config
|
||||
if err := config.Validate(); err != nil {
|
||||
if err = config.Validate(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue