History

Fix typos (#12542)

Gjergji Ramku committed 6 years ago

Commit 0c9eb461 parent d15bb174 files · +7 −7Browse files

Showing the changes to services/gitdiff/gitdiff.go (1 of 4 files). Show all

Unified · Split

services/gitdiff/gitdiff.go+3−3
@@ -89,8 +89,8 @@ type DiffLineSectionInfo struct { · 88 unmodified lines
8989 RightHunkSize int
9090 }
9191
92−// BlobExceprtChunkSize represent max lines of excerpt
93−const BlobExceprtChunkSize = 20
92+// BlobExcerptChunkSize represent max lines of excerpt
93+const BlobExcerptChunkSize = 20
9494
9595 // GetType returns the type of a DiffLine.
9696 func (d *DiffLine) GetType() int {
@@ -139,7 +139,7 @@ func (d *DiffLine) GetExpandDirection() DiffLineExpandDirection { · 42 unmodified lines
139139 }
140140 if d.SectionInfo.LastLeftIdx <= 0 && d.SectionInfo.LastRightIdx <= 0 {
141141 return DiffLineExpandUp
142− } else if d.SectionInfo.RightIdx-d.SectionInfo.LastRightIdx > BlobExceprtChunkSize && d.SectionInfo.RightHunkSize > 0 {
142+ } else if d.SectionInfo.RightIdx-d.SectionInfo.LastRightIdx > BlobExcerptChunkSize && d.SectionInfo.RightHunkSize > 0 {
143143 return DiffLineExpandUpDown
144144 } else if d.SectionInfo.LeftHunkSize <= 0 && d.SectionInfo.RightHunkSize <= 0 {
145145 return DiffLineExpandDown