Skip to content

Commit baf6c3b

Browse files
author
Ma Shimiao
committed
small fix: fomart variable as CamelCase
Signed-off-by: Ma Shimiao <[email protected]>
1 parent a05c891 commit baf6c3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/runtimetest/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,10 @@ func validateLinuxDevices(spec *rspec.Spec) error {
311311
}
312312
}
313313
if device.FileMode != nil {
314-
expected_perm := *device.FileMode & os.ModePerm
315-
actual_perm := fi.Mode() & os.ModePerm
316-
if expected_perm != actual_perm {
317-
return fmt.Errorf("%v filemode expected is %v, actual is %v", device.Path, expected_perm, actual_perm)
314+
expectedPerm := *device.FileMode & os.ModePerm
315+
actualPerm := fi.Mode() & os.ModePerm
316+
if expectedPerm != actualPerm {
317+
return fmt.Errorf("%v filemode expected is %v, actual is %v", device.Path, expectedPerm, actualPerm)
318318
}
319319
}
320320
if device.UID != nil {

0 commit comments

Comments
 (0)