mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 07:18:36 +00:00
fix go vet issues
This commit is contained in:
@@ -39,6 +39,6 @@ var verbose bool
|
||||
|
||||
func Execute() {
|
||||
if err := root.Execute(); err != nil {
|
||||
fmt.Errorf("error: %s", err)
|
||||
println(fmt.Errorf("error: %s", err))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,6 @@ var verbose bool
|
||||
|
||||
func Execute() {
|
||||
if err := Root.Execute(); err != nil {
|
||||
fmt.Errorf("error: %s", err)
|
||||
println(fmt.Errorf("error: %s", err))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ func (p *probe) run(_ *cobra.Command, args []string) {
|
||||
for {
|
||||
if _, err = p.ctx.GetServices(); err != nil {
|
||||
sleepDuration := 5 * time.Second
|
||||
log.Error("failed to load available services, try again in %.2f seconds: %v", sleepDuration.Seconds(), err)
|
||||
log.Errorf("failed to load available services, try again in %.2f seconds: %v", sleepDuration.Seconds(), err)
|
||||
time.Sleep(sleepDuration)
|
||||
} else {
|
||||
break
|
||||
|
||||
@@ -502,8 +502,6 @@ func runCreatePostureCheckOs(o *createPostureCheckOsOptions) error {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return err
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -536,5 +534,4 @@ func parseOsSpec(osSpecStr string) (*osSpec, error) {
|
||||
Type: osType,
|
||||
Versions: cleanVersions,
|
||||
}, nil
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user