Omit needless dots

This commit is contained in:
Matt Diephouse 2014-12-19 16:49:11 -10:00
parent 6c5f88fed1
commit f7e910fd36

View File

@ -17,13 +17,13 @@ public enum Object {
var oid: OID { var oid: OID {
switch self { switch self {
case let .Commit(oid): case let Commit(oid):
return oid return oid
case let .Tree(oid): case let Tree(oid):
return oid return oid
case let .Blob(oid): case let Blob(oid):
return oid return oid
case let .Tag(oid): case let Tag(oid):
return oid return oid
} }
} }
@ -31,13 +31,13 @@ public enum Object {
init?(oid: OID, type: git_otype) { init?(oid: OID, type: git_otype) {
switch type.value { switch type.value {
case GIT_OBJ_COMMIT.value: case GIT_OBJ_COMMIT.value:
self = .Commit(oid) self = Commit(oid)
case GIT_OBJ_TREE.value: case GIT_OBJ_TREE.value:
self = .Tree(oid) self = Tree(oid)
case GIT_OBJ_BLOB.value: case GIT_OBJ_BLOB.value:
self = .Blob(oid) self = Blob(oid)
case GIT_OBJ_TAG.value: case GIT_OBJ_TAG.value:
self = .Tag(oid) self = Tag(oid)
default: default:
return nil return nil
} }
@ -53,13 +53,13 @@ extension Object: Hashable {
extension Object: Printable { extension Object: Printable {
public var description: String { public var description: String {
switch self { switch self {
case .Commit: case Commit:
return "commit(\(oid))" return "commit(\(oid))"
case .Tree: case Tree:
return "tree(\(oid))" return "tree(\(oid))"
case .Blob: case Blob:
return "blob(\(oid))" return "blob(\(oid))"
case .Tag: case Tag:
return "tag(\(oid))" return "tag(\(oid))"
} }
} }