diff options
author | Sascha Grunert <sgrunert@suse.com> | 2020-08-03 09:13:04 +0200 |
---|---|---|
committer | Sascha Grunert <sgrunert@suse.com> | 2020-08-03 09:13:04 +0200 |
commit | fef3e2da6a2024fff5142b5df80aba36e895ed73 (patch) | |
tree | 5eb2d1ec59719abd82b9114e0c30ae518e444a76 /test/endpoint/endpoint.go | |
parent | bfd34542f463b7ea59b9560516b3b3d66674eefe (diff) | |
download | podman-fef3e2da6a2024fff5142b5df80aba36e895ed73.tar.gz podman-fef3e2da6a2024fff5142b5df80aba36e895ed73.tar.bz2 podman-fef3e2da6a2024fff5142b5df80aba36e895ed73.zip |
Remove some unnecessary []byte to string conversions
Some calls to `Sprintf("%s")` can be avoided by using direct string
type assertions.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'test/endpoint/endpoint.go')
-rw-r--r-- | test/endpoint/endpoint.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/endpoint/endpoint.go b/test/endpoint/endpoint.go index 0593b05cd..d2c143824 100644 --- a/test/endpoint/endpoint.go +++ b/test/endpoint/endpoint.go @@ -192,12 +192,12 @@ func (p *EndpointTestIntegration) Varlink(endpoint, message string, more bool) * } func (s *EndpointSession) StdErrToString() string { - fields := strings.Fields(fmt.Sprintf("%s", s.Err.Contents())) + fields := strings.Fields(string(s.Err.Contents())) return strings.Join(fields, " ") } func (s *EndpointSession) OutputToString() string { - fields := strings.Fields(fmt.Sprintf("%s", s.Out.Contents())) + fields := strings.Fields(string(s.Out.Contents())) return strings.Join(fields, " ") } |