mirror of https://github.com/pulumi/pulumi.git
9995a9927a
A couple places in pkg/ use Printf without any arguments. These cases can use the input strings as-is instead. Switch to either the Print variant, or io.WriteString. Issues found by staticcheck: ``` backend/httpstate/backend.go:1627:2: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck) backend/httpstate/backend.go:1644:5: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck) codegen/go/gen.go:2260:2: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck) codegen/nodejs/gen.go:1088:3: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck) codegen/python/gen.go:1861:2: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck) codegen/python/gen.go:436:2: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck) ``` Refs #11808 |
||
---|---|---|
.. | ||
client | ||
testdata | ||
backend.go | ||
backend_test.go | ||
console.go | ||
console_test.go | ||
diffs.go | ||
doc.go | ||
policypack.go | ||
snapshot.go | ||
snapshot_test.go | ||
stack.go | ||
state.go | ||
token_source.go | ||
token_source_test.go |