core: fix staticcheck warnings (#20384)

* core: fix staticcheck warnings

* fix goimports
This commit is contained in:
Guillaume Ballet
2019-11-27 09:50:30 +01:00
committed by GitHub
parent c4844e9ee2
commit 7b189d6f1f
4 changed files with 32 additions and 14 deletions

View File

@ -74,13 +74,6 @@ func (st *Stack) Back(n int) *big.Int {
return st.data[st.len()-n-1]
}
func (st *Stack) require(n int) error {
if st.len() < n {
return fmt.Errorf("stack underflow (%d <=> %d)", len(st.data), n)
}
return nil
}
// Print dumps the content of the stack
func (st *Stack) Print() {
fmt.Println("### stack ###")