internal: fix megacheck warnings (#14919)

This commit is contained in:
Egon Elbre
2017-08-07 18:14:40 +03:00
committed by Felix Lange
parent f5925b0459
commit f42bd73ce5
2 changed files with 3 additions and 34 deletions

View File

@ -65,14 +65,6 @@ func prettyError(vm *otto.Otto, err error, w io.Writer) {
fmt.Fprint(w, ErrorColor("%s", failure))
}
// jsErrorString adds a backtrace to errors generated by otto.
func jsErrorString(err error) string {
if ottoErr, ok := err.(*otto.Error); ok {
return ottoErr.String()
}
return err.Error()
}
func (re *JSRE) prettyPrintJS(call otto.FunctionCall) otto.Value {
for _, v := range call.ArgumentList {
prettyPrint(call.Otto, v, re.output)