From 5b12d3fa21635145cb8a752b56477e22fca77a5b Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Fri, 30 Oct 2020 12:55:53 -0400 Subject: remove these ID calls: Key(), Bytes(), Equals(), NewID(), IsZero() --- plugin/evm/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/evm/user.go') diff --git a/plugin/evm/user.go b/plugin/evm/user.go index b751634..152156d 100644 --- a/plugin/evm/user.go +++ b/plugin/evm/user.go @@ -15,7 +15,7 @@ import ( // Key in the database whose corresponding value is the list of // addresses this user controls -var addressesKey = ids.Empty.Bytes() +var addressesKey = ids.Empty[:] var ( errDBNil = errors.New("db uninitialized") -- cgit v1.2.3 From 52de74ce47a2614af3b3a32b21aa5309d4b00d78 Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Sun, 1 Nov 2020 18:32:22 -0500 Subject: lint --- plugin/evm/user.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugin/evm/user.go') diff --git a/plugin/evm/user.go b/plugin/evm/user.go index 152156d..0ab1863 100644 --- a/plugin/evm/user.go +++ b/plugin/evm/user.go @@ -18,9 +18,8 @@ import ( var addressesKey = ids.Empty[:] var ( - errDBNil = errors.New("db uninitialized") - errKeyNil = errors.New("key uninitialized") - errEmptyAddress = errors.New("address is empty") + errDBNil = errors.New("db uninitialized") + errKeyNil = errors.New("key uninitialized") ) type user struct { -- cgit v1.2.3