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 |
||
---|---|---|
.. | ||
gen_program_test | ||
doc.go | ||
doc_test.go | ||
gen.go | ||
gen_fileinfo.go | ||
gen_intrinsics.go | ||
gen_lazyloads.go | ||
gen_lazyloads_test.go | ||
gen_program.go | ||
gen_program_expressions.go | ||
gen_program_lower.go | ||
gen_program_test.go | ||
gen_program_utils.go | ||
gen_test.go | ||
importer.go | ||
test.go | ||
utilities.go | ||
utilities_test.go |