Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3a3f96c

Browse files
edigaryevonee-only
andcommitted
plumbing: format/packfile, early return
Co-authored-by: onee-only <kimww0306@gmail.com>
1 parentfd40610 commit3a3f96c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎plumbing/format/packfile/delta_index.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ func (idx *deltaIndex) findMatch(src, tgt []byte, tgtOffset int) (srcOffset, l i
3535
h:=hashBlock(tgt,tgtOffset)
3636
tIdx:=h&idx.mask
3737
eIdx:=idx.table[tIdx]
38-
ifeIdx!=0 {
39-
srcOffset=idx.entries[eIdx]
40-
}else {
38+
ifeIdx==0 {
4139
return
4240
}
4341

42+
srcOffset=idx.entries[eIdx]
43+
4444
l=matchLength(src,tgt,tgtOffset,srcOffset)
4545

4646
return

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp