1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Don’t bother destructuring tags.

This commit is contained in:
Rob Rix 2015-10-07 13:20:09 -04:00
parent ba650f8080
commit aef4c32754

View File

@ -25,8 +25,5 @@ public enum Category: AlgebraicHashable, CustomDebugStringConvertible {
}
public func == (left: Category, right: Category) -> Bool {
switch (left, right) {
case let (.Tag(a), .Tag(b)):
return a == b
}
return left.tag == right.tag
}