1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

Use io.SeekStart instead of os.SEEK_SET

Fixes linter warnings like this one:

> distribution/pull_v2.go:229:39: SA1019: os.SEEK_SET is deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd.  (staticcheck)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2019-08-05 20:12:23 -07:00
committed by Sebastiaan van Stijn
parent 04129678a6
commit a7942baf76
3 changed files with 8 additions and 8 deletions

View File

@ -2217,7 +2217,7 @@ func (s *DockerDaemonSuite) TestDaemonDiscoveryBackendConfigReload(c *testing.T)
err = configFile.Truncate(0)
assert.NilError(c, err)
_, err = configFile.Seek(0, os.SEEK_SET)
_, err = configFile.Seek(0, io.SeekStart)
assert.NilError(c, err)
_, err = configFile.Write([]byte(daemonConfig))