Merge pull request #1848 from guardicore/1836-fix-eslint-errors

Fix eslint errors
This commit is contained in:
Shreya Malviya 2022-04-04 13:08:04 +05:30 committed by GitHub
commit cc83896724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ class MapPageComponent extends AuthComponent {
body: JSON.stringify({kill_time: Date.now() / 1000.0})
})
.then(res => res.json())
.then(res => {this.setState({killPressed: true})});
.then(() => {this.setState({killPressed: true})});
};
renderKillDialogModal = () => {

View File

@ -53,7 +53,7 @@ class ReportMatrixComponent extends React.Component {
}
renderTechnique(technique) {
if (technique == null || typeof technique === undefined) {
if (technique == null || typeof technique === 'undefined') {
return (<div/>)
} else {
return (

View File

@ -50,7 +50,7 @@ function aggregateMultipleResultsPba(results) {
for (let i = 0; i < results.length; i++) {
if (multipleResultsPbas.includes(results[i].name))
aggregateResults(results[i]);
if ((results[i].name === PROCESS_LIST_COLLECTION) && (typeof results[i].result[0] !== "string"))
if ((results[i].name === PROCESS_LIST_COLLECTION) && (typeof results[i].result[0] !== 'string'))
modifyProcessListCollectionResult(results[i].result);
}