From 31f6ea6809c04599e2016565eee0e8ae255331c3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Mar 2026 20:01:38 +0000 Subject: network/receivepack/service: Some cleanups --- network/receivepack/service/command.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'network/receivepack/service/command.go') 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 -} -- cgit v1.3.1-10-gc9f91