wallet: use named constants in Seek

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgeniy Stratonikov 2021-07-29 14:59:23 +03:00
parent a429aa3e68
commit 283173bb9d

View file

@ -181,7 +181,7 @@ func (w *Wallet) writeRaw(data []byte) error {
func (w *Wallet) rewind() error {
if s, ok := w.rw.(io.Seeker); ok {
if _, err := s.Seek(0, 0); err != nil {
if _, err := s.Seek(0, io.SeekStart); err != nil {
return err
}
}