remove redundant find

pull/3892/head
Joseph Izang 2 years ago
parent f502002a88
commit 72f17bf2ab
  1. 3
      apps/remix-ide/src/app/tabs/analysis-tab.js

@ -49,8 +49,7 @@ class AnalysisTab extends ViewPlugin {
this.event.register('staticAnaysisWarning', (count) => {
let payloadType = ''
const error = this.hints.find(hint => hint.type === 'error')
const warning = this.hints.find(hints => hints.type === 'warning')
const error = this.hints?.find(hint => hint.type === 'error')
if (error) {
payloadType = 'error'
} else {

Loading…
Cancel
Save