remove uneeded var assignement

pull/1484/head^2
yann300 3 years ago committed by Aniket
parent d19d1d6ab1
commit 9c59bcbafc
  1. 17
      libs/remix-ui/renderer/src/lib/renderer.tsx

@ -30,23 +30,22 @@ export const Renderer = ({ message, opt = {}, plugin }: RendererProps) => {
// browser/gm.sol: Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.6.12 // browser/gm.sol: Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.6.12
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/introspection/IERC1820Registry.sol:3:1: ParserError: Source file requires different compiler version (current compiler is 0.7.4+commit.3f05b770.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/introspection/IERC1820Registry.sol:3:1: ParserError: Source file requires different compiler version (current compiler is 0.7.4+commit.3f05b770.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
const positionDetails = getPositionDetails(text) const positionDetails = getPositionDetails(text)
const options = opt
options.errLine = positionDetails.errLine opt.errLine = positionDetails.errLine
options.errCol = positionDetails.errCol opt.errCol = positionDetails.errCol
options.errFile = positionDetails.errFile ? (positionDetails.errFile as string).trim() : '' opt.errFile = positionDetails.errFile ? (positionDetails.errFile as string).trim() : ''
if (!opt.noAnnotations && options.errFile && options.errFile !== '') { if (!opt.noAnnotations && opt.errFile && opt.errFile !== '') {
addAnnotation(opt.errFile, { addAnnotation(opt.errFile, {
row: options.errLine, row: opt.errLine,
column: options.errCol, column: opt.errCol,
text: text, text: text,
type: options.type type: opt.type
}) })
} }
setMessageText(text) setMessageText(text)
setEditorOptions(options) setEditorOptions(opt)
setClose(false) setClose(false)
}, [message, opt]) }, [message, opt])

Loading…
Cancel
Save