mirror of
https://github.com/containers/podman.git
synced 2025-12-01 10:38:05 +08:00
Fix QF1012 staticcheck warnings
> QF1012: Use fmt.Fprintf(...) instead of WriteString Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -575,7 +575,7 @@ func (p *PodmanTestIntegration) StopPod(nameOrID string) {
|
||||
|
||||
func processTestResult(r SpecReport) {
|
||||
tr := testResult{length: r.RunTime.Seconds(), name: r.FullText()}
|
||||
_, err := timingsFile.WriteString(fmt.Sprintf("%s\t\t%f\n", tr.name, tr.length))
|
||||
_, err := fmt.Fprintf(timingsFile, "%s\t\t%f\n", tr.name, tr.length)
|
||||
Expect(err).ToNot(HaveOccurred(), "write timings")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user