summaryrefslogtreecommitdiff
path: root/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'object.go')
-rw-r--r--object.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/object.go b/object.go
index 7428e0f..20cee85 100644
--- a/object.go
+++ b/object.go
@@ -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,
}