fix codacity issues
This commit is contained in:
parent
1be753149d
commit
d14d7fcc92
1 changed files with 3 additions and 3 deletions
|
|
@ -87,8 +87,8 @@ export function groupByFamily(data, baseClasses, left, type) {
|
||||||
let arrOfType: { family: string; type: string; component: string }[] = [];
|
let arrOfType: { family: string; type: string; component: string }[] = [];
|
||||||
let arrOfLength: { length: number; type: string }[] = [];
|
let arrOfLength: { length: number; type: string }[] = [];
|
||||||
let lastType = "";
|
let lastType = "";
|
||||||
Object.keys(data).map((d) => {
|
Object.keys(data).forEach((d) => {
|
||||||
Object.keys(data[d]).map((n) => {
|
Object.keys(data[d]).forEach((n) => {
|
||||||
try {
|
try {
|
||||||
if (
|
if (
|
||||||
data[d][n].base_classes.some((r) =>
|
data[d][n].base_classes.some((r) =>
|
||||||
|
|
@ -120,7 +120,7 @@ export function groupByFamily(data, baseClasses, left, type) {
|
||||||
try {
|
try {
|
||||||
baseClasses.split("\n").forEach((tol) => {
|
baseClasses.split("\n").forEach((tol) => {
|
||||||
data[d][n].base_classes.forEach((data) => {
|
data[d][n].base_classes.forEach((data) => {
|
||||||
if (tol == data) {
|
if (tol === data) {
|
||||||
arrOfType.push({
|
arrOfType.push({
|
||||||
family: d,
|
family: d,
|
||||||
type: data,
|
type: data,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue