aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-17 00:00:00 +0000
committerGravatar Runxi Yu2025-11-17 00:00:00 +0000
commitcb5dfd4896168d21c10cd4121cef96c05b9e8bbd (patch)
tree2bc7243f305b33db9e4296d98eaf1216328309a9
parentCompute checksum when reading packfiles (diff)
signature
Remove an unnecessary blank line
-rw-r--r--pack_idx.go1
-rw-r--r--refs_test.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/pack_idx.go b/pack_idx.go
index 3cb89701..a9cb9056 100644
--- a/pack_idx.go
+++ b/pack_idx.go
@@ -261,7 +261,6 @@ func (pi *packIndex) lookup(id Hash) (packlocation, error) {
if err != nil {
return packlocation{}, err
}
- // Verify hash size matches repository hash size
if id.size != pi.repo.hashSize {
return packlocation{}, fmt.Errorf("furgit: hash size mismatch: got %d, expected %d", id.size, pi.repo.hashSize)
}
diff --git a/refs_test.go b/refs_test.go
index c9f3da57..ddef4c14 100644
--- a/refs_test.go
+++ b/refs_test.go
@@ -89,7 +89,6 @@ func TestResolveHEAD(t *testing.T) {
default:
t.Errorf("HEAD kind: got %v, want %v", ref.Kind, HeadKindSymbolic)
}
-
}
func TestPackedRefs(t *testing.T) {