Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: also format by [email protected] #143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
@@ -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 {
1 change: 0 additions & 1 deletion msgpack/rpc/rpc.go
Original file line number Diff line number Diff line change
@@ -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) {
8 changes: 4 additions & 4 deletions nvim/api_test.go
Original file line number Diff line number Diff line change
@@ -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
}
@@ -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
}
@@ -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"
}
@@ -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"
}
2 changes: 1 addition & 1 deletion nvim/api_tool.go
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion nvim/plugin/main.go
Original file line number Diff line number Diff line change
@@ -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 {
2 changes: 1 addition & 1 deletion nvim/plugin/manifest_test.go
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ const (
func TestReplaceManifest(t *testing.T) {
t.Parallel()

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