Skip to content

Commit

Permalink
Remove duplicate return
Browse files Browse the repository at this point in the history
  • Loading branch information
Albin Vass committed May 31, 2024
1 parent 57d813d commit 4d7df63
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,10 @@ func (cfg *Config) ValidateLoadSnapshot() error {

if _, err := os.Stat(cfg.Snapshot.GetMemBackendPath()); err != nil {
return fmt.Errorf("failed to stat mem backend path, %q: %v", cfg.Snapshot.GetMemBackendPath(), err)
return err
}

if _, err := os.Stat(cfg.Snapshot.SnapshotPath); err != nil {
return fmt.Errorf("failed to stat snapshot path, %q: %v", cfg.Snapshot.SnapshotPath, err)
return err
}

return nil
Expand Down

0 comments on commit 4d7df63

Please sign in to comment.