From 66b3a205958f6bb3e7fd4c31d3d5dcebfdb52f51 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Fri, 30 Nov 2018 14:04:59 +0100 Subject: [PATCH] cleanup and bugfix (#737) --- pkg/satellite/validation.go | 2 +- pkg/storj/node.go | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/pkg/satellite/validation.go b/pkg/satellite/validation.go index 94e73d8a4..dde69e57c 100644 --- a/pkg/satellite/validation.go +++ b/pkg/satellite/validation.go @@ -25,7 +25,7 @@ type validationErrors []error // Add new ErrValidation err func (validation *validationErrors) Add(format string, args ...interface{}) { - *validation = append(*validation, ErrValidation.New(format, args)) + *validation = append(*validation, ErrValidation.New(format, args...)) } // AddWrap adds new ErrValidation wrapped err diff --git a/pkg/storj/node.go b/pkg/storj/node.go index a17d821a2..f06b93a85 100644 --- a/pkg/storj/node.go +++ b/pkg/storj/node.go @@ -71,21 +71,6 @@ func (id NodeID) String() string { return base58.CheckEncode(id[:], IDVersion) } -// Len implements sort.Interface.Len() -func (id NodeID) Len() int { - return len(id) -} - -// Swap implements sort.Interface.Swap() -func (id NodeID) Swap(i, j int) { - id[i], id[j] = id[j], id[i] -} - -// Less implements sort.Interface.Less() -func (id NodeID) Less(i, j int) bool { - return id[i] < id[j] -} - // Bytes returns raw bytes of the id func (id NodeID) Bytes() []byte { return id[:] }