fix lint issues after update

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-10-19 12:31:24 +02:00
parent 6e5aefbb98
commit 503d483731
11 changed files with 28 additions and 51 deletions

View File

@@ -185,10 +185,7 @@ func (t *Txn) reset(key string) error {
if err != nil {
return err
}
if err := ioutils.AtomicWriteFile(filepath.Join(t.s.root, "current"), dt, 0600); err != nil {
return err
}
return nil
return ioutils.AtomicWriteFile(filepath.Join(t.s.root, "current"), dt, 0600)
}
func (t *Txn) Current(key string) (*NodeGroup, error) {