We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b6929 commit cc7fd6bCopy full SHA for cc7fd6b
.github/cloud-samples-tools/pkg/config/config.go
@@ -72,12 +72,12 @@ func LoadConfig(path string) (*Config, error) {
72
var config Config
73
err = json.Unmarshal(sourceJson, &config)
74
if err != nil {
75
- return &config, err
+ return nil, err
76
}
77
78
// Set default values if they are not set.
79
if config.PackageFile == nil {
80
- return &config, errors.New("package-file is required")
+ return nil, errors.New("package-file is required")
81
82
if config.Match == nil {
83
config.Match = []string{"*"}
0 commit comments