aboutsummaryrefslogtreecommitdiff
path: root/network/receivepack/service/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'network/receivepack/service/command.go')
-rw-r--r--network/receivepack/service/command.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/network/receivepack/service/command.go b/network/receivepack/service/command.go
index 4d234214..9ad50c4f 100644
--- a/network/receivepack/service/command.go
+++ b/network/receivepack/service/command.go
@@ -15,8 +15,8 @@ func fillCommandErrors(result *Result, commands []Command, errText string) {
Name: command.Name,
Error: errText,
RefName: command.Name,
- OldID: objectIDPointer(command.OldID),
- NewID: objectIDPointer(command.NewID),
+ OldID: new(command.OldID),
+ NewID: new(command.NewID),
})
}
}
@@ -24,9 +24,3 @@ func fillCommandErrors(result *Result, commands []Command, errText string) {
func isDelete(command Command) bool {
return command.NewID == command.NewID.Algorithm().Zero()
}
-
-func objectIDPointer(id objectid.ObjectID) *objectid.ObjectID {
- out := id
-
- return &out
-}