unnecessary use of fmt.Sprint (S1039) (#10049)

This commit is contained in:
guangwu 2023-06-12 02:49:54 +08:00 committed by GitHub
parent 114ae77fb7
commit 7043f6ae29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 58 additions and 62 deletions

View file

@ -17,7 +17,6 @@ limitations under the License.
package annotations
import (
"fmt"
"net/http"
"strings"
@ -52,6 +51,6 @@ var _ = framework.DescribeAnnotation("connection-proxy-header", func() {
WithHeader("Host", host).
Expect().
Status(http.StatusOK).
Body().Contains(fmt.Sprintf("connection=keep-alive"))
Body().Contains("connection=keep-alive")
})
})