From af7f7f2ce9149e2d7b853e6d91547316c959f92b Mon Sep 17 00:00:00 2001 From: DanHam Date: Thu, 24 May 2018 21:05:03 +0100 Subject: [PATCH] Fix redundant Sprintf --- builder/amazon/common/run_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/run_config.go b/builder/amazon/common/run_config.go index bc596e580..129d4d541 100644 --- a/builder/amazon/common/run_config.go +++ b/builder/amazon/common/run_config.go @@ -85,7 +85,7 @@ func (c *RunConfig) Prepare(ctx *interpolate.Context) []error { c.SSHInterface != "public_dns" && c.SSHInterface != "private_dns" && c.SSHInterface != "" { - errs = append(errs, fmt.Errorf(fmt.Sprintf("Unknown interface type: %s", c.SSHInterface))) + errs = append(errs, fmt.Errorf("Unknown interface type: %s", c.SSHInterface)) } if c.SSHKeyPairName != "" {