We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4ce1e5 + 609040b commit 5c1fa31Copy full SHA for 5c1fa31
cmd/runtimetest/main.go
@@ -281,10 +281,9 @@ func validateDefaultDevices(spec *rspec.Spec) error {
281
return fmt.Errorf("device node %v not found", device)
282
}
283
return err
284
- } else {
285
- if fi.Mode()&os.ModeDevice != os.ModeDevice {
286
- return fmt.Errorf("file %v is not a device as expected", device)
287
- }
+ }
+ if fi.Mode()&os.ModeDevice != os.ModeDevice {
+ return fmt.Errorf("file %v is not a device as expected", device)
288
289
290
0 commit comments