diff options
| author | Mark Probst <[email protected]> | 2015-03-04 11:40:26 -0800 |
|---|---|---|
| committer | Mark Probst <[email protected]> | 2015-03-04 15:52:59 -0800 |
| commit | 45d88ca5f4e69c9a07b867ec73da27f29bd77388 (patch) | |
| tree | c894f1221cdcca4f9730245e1a4eeddef768590d /object.go | |
| parent | e439b931a6b23a84fd0d32114b25a9dd5e08ac29 (diff) | |
go fmt
Diffstat (limited to 'object.go')
| -rw-r--r-- | object.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,12 +25,12 @@ type Object interface { } type gitObject struct { - ptr *C.git_object + ptr *C.git_object repo *Repository } -func (t ObjectType) String() (string) { - switch (t) { +func (t ObjectType) String() string { + switch t { case ObjectAny: return "Any" case ObjectBad: @@ -71,7 +71,7 @@ func (o *gitObject) Free() { func allocObject(cobj *C.git_object, repo *Repository) Object { obj := gitObject{ - ptr: cobj, + ptr: cobj, repo: repo, } |
