build: enable goimports and varcheck linters (#16446)

This commit is contained in:
thomasmodeneis
2018-04-18 00:53:50 +02:00
committed by Felix Lange
parent 7605e63cb9
commit ba1030b6b8
28 changed files with 54 additions and 98 deletions

View File

@ -17,7 +17,6 @@
package asm
import (
"errors"
"fmt"
"math/big"
"os"
@ -264,11 +263,6 @@ func (err compileError) Error() string {
return fmt.Sprintf("%d syntax error: unexpected %v, expected %v", err.lineno, err.got, err.want)
}
var (
errExpBol = errors.New("expected beginning of line")
errExpElementOrLabel = errors.New("expected beginning of line")
)
func compileErr(c token, got, want string) error {
return compileError{
got: got,