resolving lint error

pull/5370/head
davidzagi93@gmail.com 3 years ago
parent b3263e410d
commit ffaa71f93c
  1. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -156,7 +156,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const context = { remix: { exeCurrent: (script: any) => { return execute(undefined, script) }, loadgist: (id: any) => { return loadgist(id, () => {}) }, execute: (fileName, callback) => { return execute(fileName, callback) } } } const context = { remix: { exeCurrent: (script: any) => { return execute(undefined, script) }, loadgist: (id: any) => { return loadgist(id, () => {}) }, execute: (fileName, callback) => { return execute(fileName, callback) } } }
try { try {
const cmds = vm.createContext(context) const cmds = vm.createContext(context)
const result = vm.runInContext(script, cmds) const result = vm.runInContext(script, cmds) // eslint-disable-line
return done(null, result) return done(null, result)
} catch (error) { } catch (error) {
return done(error.message) return done(error.message)

Loading…
Cancel
Save