mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Linting on PLIST viewer operation.
This commit is contained in:
parent
0295d0c9b4
commit
d8405e5f81
1 changed files with 3 additions and 3 deletions
|
@ -71,8 +71,8 @@ class PLISTViewer extends Operation {
|
||||||
* @param {array} vals
|
* @param {array} vals
|
||||||
* @param {number} offset
|
* @param {number} offset
|
||||||
*/
|
*/
|
||||||
function braces(elem, vals,offset) {
|
function braces(elem, vals, offset) {
|
||||||
let temp = vals.indexOf(elem);
|
const temp = vals.indexOf(elem);
|
||||||
if (temp !== -1) {
|
if (temp !== -1) {
|
||||||
depthCount += offset;
|
depthCount += offset;
|
||||||
if (temp === 1)
|
if (temp === 1)
|
||||||
|
@ -129,7 +129,7 @@ class PLISTViewer extends Operation {
|
||||||
result += temp;
|
result += temp;
|
||||||
|
|
||||||
// Controls the tab depth for how many opening braces there have been.
|
// Controls the tab depth for how many opening braces there have been.
|
||||||
braces(currElem, ["{", "["],1);
|
braces(currElem, ["{", "["], 1);
|
||||||
|
|
||||||
// If there has been a new array then reset index.
|
// If there has been a new array then reset index.
|
||||||
if (arrCount > origArr)
|
if (arrCount > origArr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue