mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
Other: Lint fixes
This commit is contained in:
@ -24,7 +24,7 @@ import (
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
var nextMutexID uint64
|
||||
var nextMutexID uint64 // nolint:gochecknoglobals
|
||||
|
||||
// Mutex is a mutex that can be locked and unlocked.
|
||||
type Mutex interface {
|
||||
|
||||
@ -58,11 +58,6 @@ func groupBy[Key comparable, Value any](items []Value, key func(Value) Key) map[
|
||||
return groups
|
||||
}
|
||||
|
||||
// sortAddr returns whether the first address should be sorted before the second.
|
||||
func sortAddr(addrIDA, addrIDB string, apiAddrs map[string]liteapi.Address) bool {
|
||||
return apiAddrs[addrIDA].Order < apiAddrs[addrIDB].Order
|
||||
}
|
||||
|
||||
// hexEncode returns the hexadecimal encoding of the given byte slice.
|
||||
func hexEncode(b []byte) []byte {
|
||||
enc := make([]byte, hex.EncodedLen(len(b)))
|
||||
|
||||
Reference in New Issue
Block a user