Skip to content

Commit

Permalink
Merge pull request #208 from Mashimiao/runtime-remove-unnecessary-else
Browse files Browse the repository at this point in the history
runtimetest: remove unnecessary else
  • Loading branch information
Mrunal Patel authored Sep 14, 2016
2 parents a4ce1e5 + 609040b commit 5c1fa31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/runtimetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,9 @@ func validateDefaultDevices(spec *rspec.Spec) error {
return fmt.Errorf("device node %v not found", device)
}
return err
} else {
if fi.Mode()&os.ModeDevice != os.ModeDevice {
return fmt.Errorf("file %v is not a device as expected", device)
}
}
if fi.Mode()&os.ModeDevice != os.ModeDevice {
return fmt.Errorf("file %v is not a device as expected", device)
}
}

Expand Down

0 comments on commit 5c1fa31

Please sign in to comment.