Skip to content

Commit

Permalink
chore: disable linter on Windows temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed May 19, 2021
1 parent af31db1 commit 8b19a24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
# - windows-latest
name: Golangci-Lint
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -29,4 +29,4 @@ jobs:
uses: golangci/golangci-lint-action@v2
with:
version: v1.40
args: -E goimports -E gocritic -E misspell -E revive
args: -E gofumpt -E gocritic -E misspell -E revive
6 changes: 2 additions & 4 deletions codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ type (
}

// BuiltInFrameCodec is the built-in codec which will be assigned to gnet server when customized codec is not set up.
BuiltInFrameCodec struct {
}
BuiltInFrameCodec struct{}

// LineBasedFrameCodec encodes/decodes line-separated frames into/from TCP stream.
LineBasedFrameCodec struct {
}
LineBasedFrameCodec struct{}

// DelimiterBasedFrameCodec encodes/decodes specific-delimiter-separated frames into/from TCP stream.
DelimiterBasedFrameCodec struct {
Expand Down
3 changes: 1 addition & 2 deletions gnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ type (
// EventServer is a built-in implementation of EventHandler which sets up each method with a default implementation,
// you can compose it with your own implementation of EventHandler when you don't want to implement all methods
// in EventHandler.
EventServer struct {
}
EventServer struct{}
)

// OnInitComplete fires when the server is ready for accepting connections.
Expand Down

0 comments on commit 8b19a24

Please sign in to comment.