Skip to content

Commit

Permalink
delete travis script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStocks committed Jan 6, 2021
1 parent 838c847 commit 34fa1da
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 44 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
go get -v -t -d ./...
fi
- name: gofmt
run: |
go fmt ./... && git checkout -- go.mod && git status && [[ -z `git status -s` ]]
# diff -u <(echo -n) <(gofmt -d -s .)
- name: Install go ci lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0

Expand Down
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions protocol/dubbo/hessian2/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ const (
INT_SHORT_MAX = 0x3ffff
BC_INT_SHORT_ZERO = byte(0xd4)

BC_LIST_VARIABLE = byte(0x55)
BC_LIST_FIXED = byte('V')
BC_LIST_VARIABLE_UNTYPED = byte(0x57)
BC_LIST_FIXED_UNTYPED = byte(0x58)
BC_LIST_VARIABLE = byte(0x55)
BC_LIST_FIXED = byte('V')
BC_LIST_VARIABLE_UNTYPED = byte(0x57)
BC_LIST_FIXED_UNTYPED = byte(0x58)

BC_LIST_DIRECT = byte(0x70)
BC_LIST_DIRECT_UNTYPED = byte(0x78)
Expand Down
8 changes: 4 additions & 4 deletions protocol/dubbo/impl/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ const (
INT_SHORT_MAX = 0x3ffff
BC_INT_SHORT_ZERO = byte(0xd4)

BC_LIST_VARIABLE = byte(0x55)
BC_LIST_FIXED = byte('V')
BC_LIST_VARIABLE_UNTYPED = byte(0x57)
BC_LIST_FIXED_UNTYPED = byte(0x58)
BC_LIST_VARIABLE = byte(0x55)
BC_LIST_FIXED = byte('V')
BC_LIST_VARIABLE_UNTYPED = byte(0x57)
BC_LIST_FIXED_UNTYPED = byte(0x58)

BC_LIST_DIRECT = byte(0x70)
BC_LIST_DIRECT_UNTYPED = byte(0x78)
Expand Down
10 changes: 5 additions & 5 deletions protocol/jsonrpc/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ type CodecData struct {
const (
// Errors defined in the JSON-RPC spec. See
// http://www.jsonrpc.org/specification#error_object.
CodeParseError = -32700
CodeInvalidRequest = -32600
CodeMethodNotFound = -32601
CodeInvalidParams = -32602
CodeInternalError = -32603
CodeParseError = -32700
CodeInvalidRequest = -32600
CodeMethodNotFound = -32601
CodeInvalidParams = -32602
CodeInternalError = -32603
)

// Error response Error
Expand Down
4 changes: 2 additions & 2 deletions registry/file/service_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestNewFileSystemServiceDiscoveryAndDestroy(t *testing.T) {
serviceDiscovery, err := newFileSystemServiceDiscovery(testName)
assert.NoError(t, err)
assert.NotNil(t, serviceDiscovery)
defer func () {
defer func() {
err = serviceDiscovery.Destroy()
assert.Nil(t, err)
}()
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestCURDFileSystemServiceDiscovery(t *testing.T) {

err = serviceDiscovery.Register(r1)
assert.NoError(t, err)
defer func () {
defer func() {
err = serviceDiscovery.Destroy()
assert.NoError(t, err)
}()
Expand Down
2 changes: 1 addition & 1 deletion remoting/zookeeper/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestListener(t *testing.T) {
`
var wait sync.WaitGroup
ts, client, event := initZkData(t)
defer func () {
defer func() {
if err := ts.Stop(); err != nil {
t.Errorf("ts.Stop() = error: %v", err)
}
Expand Down

0 comments on commit 34fa1da

Please sign in to comment.