wallet: use named constants in Seek
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
a429aa3e68
commit
283173bb9d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue