Skip to content

Commit e17f72d

Browse files
authored
Merge pull request #457 from walles/bump-golangci-lint-version
Bump CI golangci-lint
2 parents 2c955c1 + faa8fa0 commit e17f72d

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎.github/workflows/linux-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# commandline below:
2323
# https://github.com/golangci/golangci-lint/releases/latest
2424
- name: Install golangci-lint
25-
run: curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.11.3
25+
run: curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.13.1
2626

2727
# Required by test.sh
2828
- name: Install mandoc

‎internal/detectManPage.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ const manPageDetectionLines = 14
1212

1313
func (p *Pager) haveLoadedManPage() bool {
1414
reader := p.Reader()
15-
if reader == nil {
16-
return false
17-
}
18-
1915
for _, line := range reader.GetLines(linemetadata.Index{}, manPageDetectionLines).Lines {
2016
if line.Line.HasManPageFormatting() {
2117
return true

‎internal/pager.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ func (p *Pager) moveRight(delta int) {
420420
}
421421
}
422422

423+
// Reader returns the currently active reader, never nil.
423424
func (p *Pager) Reader() reader.Reader {
424425
if p.isShowingHelp {
425426
return _HelpReader

0 commit comments

Comments
 (0)