Skip to content

Commit

Permalink
Merge pull request #313 from Mashimiao/fix-remove-unneeded-break
Browse files Browse the repository at this point in the history
small fix: remove unneeded break
  • Loading branch information
hqhq authored Feb 8, 2017
2 parents 671883e + 56eb162 commit 485e8cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions cmd/runtimetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,10 @@ func validateLinuxDevices(spec *rspec.Spec) error {
switch fStat.Mode & syscall.S_IFMT {
case syscall.S_IFCHR:
devType = "c"
break
case syscall.S_IFBLK:
devType = "b"
break
case syscall.S_IFIFO:
devType = "p"
break
default:
devType = "unmatched"
}
Expand Down
1 change: 0 additions & 1 deletion generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ func (g *Generator) AddCgroupsMount(mountCgroupOption string) error {
switch mountCgroupOption {
case "ro":
case "rw":
break
case "no":
return nil
default:
Expand Down

0 comments on commit 485e8cf

Please sign in to comment.