From f42bd73ce5e9c4d87b0bbcfbd900641305ebe894 Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 7 Aug 2017 18:14:40 +0300 Subject: internal: fix megacheck warnings (#14919) --- internal/jsre/pretty.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'internal/jsre') diff --git a/internal/jsre/pretty.go b/internal/jsre/pretty.go index e096eec23..16fa91b67 100644 --- a/internal/jsre/pretty.go +++ b/internal/jsre/pretty.go @@ -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) -- cgit v1.2.3