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.
1 parent 089d971 commit 609040bCopy full SHA for 609040b
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