Skip to content

Commit

Permalink
chore: update lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeffcaii committed Jan 26, 2021
1 parent 7cef572 commit a5ba70b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.30
version: v1.35
2 changes: 1 addition & 1 deletion internal/bytesconv/bytesconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// StringToBytes converts string to byte slice without a memory allocation.
func StringToBytes(s string) (b []byte) {
sh := *(*reflect.StringHeader)(unsafe.Pointer(&s))
sh := *(*reflect.StringHeader)(unsafe.Pointer(&s)) //nolint
bh := (*reflect.SliceHeader)(unsafe.Pointer(&b))
bh.Data, bh.Len, bh.Cap = sh.Data, sh.Len, sh.Len
return b
Expand Down

0 comments on commit a5ba70b

Please sign in to comment.