From e3045c255a4620bc412cf3c0c467a45484da8666 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Mon, 11 Oct 2021 18:02:17 +0530 Subject: [PATCH] cc: Change variables from snake case to camel case for consistency --- .../src/components/attack/techniques/T1086.js | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/attack/techniques/T1086.js b/monkey/monkey_island/cc/ui/src/components/attack/techniques/T1086.js index 960fa25ea..760170185 100644 --- a/monkey/monkey_island/cc/ui/src/components/attack/techniques/T1086.js +++ b/monkey/monkey_island/cc/ui/src/components/attack/techniques/T1086.js @@ -53,29 +53,29 @@ class T1086 extends React.Component { } segregatePowershellDataPerCategory() { - let exploit_category_name = 'exploit'; - let pba_category_name = 'post_breach'; + let exploitCategoryName = 'exploit'; + let pbaCategoryName = 'post_breach'; - let data_from_exploits = []; - let data_from_pbas = []; + let dataFromExploits = []; + let dataFromPBAs = []; for (let rowIdx in this.props.data.cmds) { let row = this.props.data.cmds[rowIdx]; - if (row.telem_category == exploit_category_name) { - data_from_exploits.push(row); + if (row.telem_category == exploitCategoryName) { + dataFromExploits.push(row); } - else if (row.telem_category == pba_category_name) { - data_from_pbas.push(row); + else if (row.telem_category == pbaCategoryName) { + dataFromPBAs.push(row); } } - return [data_from_exploits, data_from_pbas] + return [dataFromExploits, dataFromPBAs] } render() { let segregatedData = this.segregatePowershellDataPerCategory(); - let data_from_exploits = segregatedData[0]; - let data_from_pbas = segregatedData[1]; + let dataFromExploits = segregatedData[0]; + let dataFromPBAs = segregatedData[1]; return (
@@ -85,17 +85,17 @@ class T1086 extends React.Component {


: ''}