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:
committed by
Sebastiaan van Stijn
parent
04129678a6
commit
a7942baf76
@ -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))
|
||||
|
Reference in New Issue
Block a user