Skip to content

Commit

Permalink
chore: various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wI2L committed Nov 17, 2024
1 parent 0a42b43 commit 4fea2d0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
run:
go: "1.23"
timeout: 10m
linters:
disable-all: true
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: jsondiff
release:
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ The benchmarks were run 10x (statistics computed with [benchstat](https://pkg.go
```
OS : macOS Sequoia (15.1)
CPU: Apple M1 Max
Mem: 64GB
Go : go version go1.23.2 darwin/arm64
```

Expand Down
4 changes: 2 additions & 2 deletions differ.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package jsondiff

import (
"sort"
"slices"
"strings"
"unsafe"
)
Expand Down Expand Up @@ -537,7 +537,7 @@ func sortStrings(v []string) {
if len(v) <= 20 {
insertionSort(v)
} else {
sort.Strings(v)
slices.Sort(v)
}
}

Expand Down
2 changes: 1 addition & 1 deletion hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func BenchmarkHashing(b *testing.B) {
if err != nil {
b.Error(err)
}
b.Run("hasher-digestValue", func(b *testing.B) {
b.Run("hasher-digest", func(b *testing.B) {
h := hasher{}
for i := 0; i < b.N; i++ {
_ = h.digest(data, false)
Expand Down

0 comments on commit 4fea2d0

Please sign in to comment.