Skip to content

Commit

Permalink
gofumpt -w
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Aug 1, 2023
1 parent 4bcc1ec commit 867f4a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion oviewer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewConfig() Config {
Prompt: OVPromptConfig{
Normal: OVPromptConfigNormal{
ShowFilename: true,
InvertColor: true,
InvertColor: true,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion oviewer/control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func TestDocument_requestFollow(t *testing.T) {
for !m.BufEOF() {
}

af, err := os.OpenFile(fname, os.O_APPEND|os.O_RDWR, 0600)
af, err := os.OpenFile(fname, os.O_APPEND|os.O_RDWR, 0o600)
if err != nil {
t.Fatal("open error", tt.fields.FileName)
}
Expand Down
2 changes: 1 addition & 1 deletion oviewer/move_lateral.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (m *Document) moveToWidth(scr SCR, moveTo int) (int, int, error) {
return m.x, m.columnCursor, ErrNoColumn
}

var widths = make([]int, 0, len(m.columnWidths)+2)
widths := make([]int, 0, len(m.columnWidths)+2)
widths = append(widths, 0)
widths = append(widths, m.columnWidths...)
var cl, cr int
Expand Down

0 comments on commit 867f4a0

Please sign in to comment.