diff options
| author | 2026-03-30 20:01:38 +0000 | |
|---|---|---|
| committer | 2026-03-30 20:01:38 +0000 | |
| commit | 31f6ea6809c04599e2016565eee0e8ae255331c3 (patch) | |
| tree | d257807b75f81eb4f5c292be4b127dfb6d3e25fd /network/receivepack/service/command.go | |
| parent | network/receivepack: Fix some leftovers (diff) | |
| signature | No signature | |
network/receivepack/service: Some cleanups v0.1.162
Diffstat (limited to 'network/receivepack/service/command.go')
| -rw-r--r-- | network/receivepack/service/command.go | 10 |
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 -} |
