diff --git a/providers/vultr/provider.go b/providers/vultr/provider.go index bd00e40..6863b2d 100644 --- a/providers/vultr/provider.go +++ b/providers/vultr/provider.go @@ -5,7 +5,6 @@ import ( "encoding/base64" "errors" "fmt" - "os" "strings" "text/template" "time" @@ -103,9 +102,9 @@ func (p *Provider) DeployAgent(ctx context.Context, agent *woodpecker.Agent) err break } } -if image == -1 { - return fmt.Errorf("%s: DeployAgent: no image found for %s", p.name, p.image) -} + if image == -1 { + return fmt.Errorf("%s: DeployAgent: no image found for %s", p.name, p.image) + } tags := make([]string, 0) for key, item := range p.labels { tags = append(tags, fmt.Sprintf("%s=%s", key, item))