Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion msgpack/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ func (b *encodeBuilder) structEncoder(t reflect.Type) encodeFunc {
name: f.name,
empty: empty,
index: f.index,
f: encoderForType(f.typ, b)}
f: encoderForType(f.typ, b),
}
}

if array {
Expand Down
1 change: 0 additions & 1 deletion msgpack/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ func NewEndpoint(r io.Reader, w io.Writer, c io.Closer, options ...Option) (*End
option.f(e)
}
return e, nil

}

func (e *Endpoint) decodeUint(what string) (uint64, error) {
Expand Down
8 changes: 4 additions & 4 deletions nvim/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3621,7 +3621,7 @@ func testHighlight(v *Nvim) func(*testing.T) {
}

const HLIDName = `PreProc`
var wantErrorHLID = 85
wantErrorHLID := 85
if nvimVersion.Minor >= 8 {
wantErrorHLID += 3
}
Expand Down Expand Up @@ -3729,7 +3729,7 @@ func testHighlight(v *Nvim) func(*testing.T) {
}

const HLIDName = `PreProc`
var wantErrorHLID = 85
wantErrorHLID := 85
if nvimVersion.Minor >= 8 {
wantErrorHLID += 3
}
Expand Down Expand Up @@ -4495,7 +4495,7 @@ func testPutPaste(v *Nvim) func(*testing.T) {
if err != nil {
t.Fatal(err)
}
var want = "!foobarbaz!"
want := "!foobarbaz!"
if nvimVersion.Minor >= 7 {
want = "!!foobarbaz"
}
Expand Down Expand Up @@ -4526,7 +4526,7 @@ func testPutPaste(v *Nvim) func(*testing.T) {
if err := b.Execute(); err != nil {
t.Fatal(err)
}
var want = "!foobarbaz!"
want := "!foobarbaz!"
if nvimVersion.Minor >= 7 {
want = "!!foobarbaz"
}
Expand Down
2 changes: 1 addition & 1 deletion nvim/api_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func printImplementation(functions []*Function, tmpl *template.Template, outFile
}

if outFile != "" {
return ioutil.WriteFile(outFile, out, 0666)
return ioutil.WriteFile(outFile, out, 0o666)
}
_, err = os.Stdout.Write(out)
return err
Expand Down
2 changes: 1 addition & 1 deletion nvim/plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func overwriteManifest(path, host string, manifest []byte) error {
return err
}
output := replaceManifest(host, input, manifest)
return ioutil.WriteFile(path, output, 0666)
return ioutil.WriteFile(path, output, 0o666)
}

func replaceManifest(host string, input, manifest []byte) []byte {
Expand Down
2 changes: 1 addition & 1 deletion nvim/plugin/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
func TestReplaceManifest(t *testing.T) {
t.Parallel()

var replaceManifestTests = []struct {
replaceManifestTests := []struct {
name string
original string
expected string
Expand Down