Skip to content

Commit

Permalink
Remove useless 'break' in switch-case
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaantonioni committed Jul 28, 2017
1 parent 6d61652 commit 5122209
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Sources/M13Checkbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,43 +94,30 @@ open class M13Checkbox: UIControl {
switch rawValue {
case "Stroke":
self = .stroke
break
case "Fill":
self = .fill
break
case "BounceStroke":
self = .bounce(.stroke)
break
case "BounceFill":
self = .bounce(.fill)
break
case "ExpandStroke":
self = .expand(.stroke)
break
case "ExpandFill":
self = .expand(.fill)
break
case "FlatStroke":
self = .flat(.stroke)
break
case "FlatFill":
self = .flat(.fill)
break
case "Spiral":
self = .spiral
break
case "FadeStroke":
self = .fade(.stroke)
break
case "FadeFill":
self = .fade(.fill)
break
case "DotStroke":
self = .dot(.stroke)
break
case "DotFill":
self = .dot(.fill)
break
default:
return nil
}
Expand Down

0 comments on commit 5122209

Please sign in to comment.