Skip to content

Commit

Permalink
Stop validating config from within LoadNodeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kthomas committed Apr 18, 2024
1 parent dd73e82 commit b7b0fe6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package nexnode
import (
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"

Expand Down Expand Up @@ -45,9 +44,5 @@ func LoadNodeConfiguration(configFilepath string) (*models.NodeConfiguration, er
config.Tags = make(map[string]string)
}

if !config.Validate() {
return nil, fmt.Errorf("invalid configuration provided: %v", config.Errors)
}

return &config, nil
}

0 comments on commit b7b0fe6

Please sign in to comment.