Linting on PLIST viewer operation.
This commit is contained in:
parent
0295d0c9b4
commit
d8405e5f81
@ -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…
x
Reference in New Issue
Block a user