Skip to content

Commit 0616b14

Browse files
committed
adds a revive exception for code that we didn't write
1 parent db1c63b commit 0616b14

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/util/names/names.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@
194194

195195
package names
196196

197+
// revive:disable:line-length-limit
198+
197199
import (
198200
"github.com/spaolacci/murmur3"
199201
)
@@ -768,5 +770,7 @@ const murmurSeed = 6231912
768770

769771
func GetRandomName(seed string) string {
770772
v := murmur3.Sum32WithSeed([]byte(seed), murmurSeed)
771-
return left[int(v & 0xffff)%len(left)] + "." + right[int(v >> 16 & 0xffff)%len(right)]
773+
return left[int(v&0xffff)%len(left)] + "." + right[int(v>>16&0xffff)%len(right)]
772774
}
775+
776+
// revive:enable:line-length-limit

0 commit comments

Comments
 (0)