Commit 902ec82
authored
dkg: use slices.Contains to simplify code (#4201)
There is a [new function](https://pkg.go.dev/[email protected]#Contains) added in the go1.21 standard library, which can make the code more concise and easy to read.
category: refactor
ticket: none1 parent b844787 commit 902ec82
File tree
1 file changed
+2
-4
lines changed- dkg/pedersen
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
0 commit comments