Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: omerlh <omerl@soluto.com>
  • Loading branch information
omerlh authored and patrick-east committed Sep 10, 2019
1 parent 9f64344 commit fd251c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/discovery/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *Config) validateAndInjectDefaults(services []string) error {
func (c *Config) getServiceFromList(service string, services []string) (string, error) {
if service == "" {
if len(services) != 1 {
return nil, fmt.Errorf("more than one service is defined")
return "", fmt.Errorf("more than one service is defined")
}
return services[0], nil
}
Expand Down

0 comments on commit fd251c3

Please sign in to comment.