From ab24353e6acac0627769743a4167aa4acc8a8de7 Mon Sep 17 00:00:00 2001 From: "mathias.chouet" <mathias.chouet@irstea.fr> Date: Tue, 30 Jun 2020 15:51:22 +0200 Subject: [PATCH] Lint code --- spec/par/par_simulation.spec.ts | 3 +-- spec/session/serialisation.spec.ts | 2 +- src/prebarrage/pre_barrage.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/par/par_simulation.spec.ts b/spec/par/par_simulation.spec.ts index 917b725f..7cd2eea8 100644 --- a/spec/par/par_simulation.spec.ts +++ b/spec/par/par_simulation.spec.ts @@ -106,8 +106,7 @@ describe("Class ParSimulation −", () => { // regime: ParFlowRegime.FREE message: MessageCode.WARNING_PAR_NOT_SUBMERGED }, - { - Z1: 14, // (dans Cv3, "calcul" est "off", sous-entendant que le calcul a raté ? Mais il y a tout de même des valeurs…) + { Z1: 14, // (dans Cv3, "calcul" est "off", sous-entendant que le calcul a raté ? Mais il y a tout de même des valeurs…) /* vCalc: 0.549, h: 0.937, ha: 4.64, diff --git a/spec/session/serialisation.spec.ts b/spec/session/serialisation.spec.ts index 304da309..e4ee9e74 100644 --- a/spec/session/serialisation.spec.ts +++ b/spec/session/serialisation.spec.ts @@ -502,7 +502,7 @@ describe("PreBarrage - ", () => { expect(pb.prms.Z2.singleValue).toBe(90.0101); expect(pb.prms.Z1.valueMode).toBe(ParamValueMode.CALCUL); expect(pb.calculatedParam.symbol).toBe("Z1"); - + const b1: PbBassin = pb.findChild("M3AxbT") as PbBassin; expect(b1.prms.S.singleValue).toBe(0.111); expect(b1.prms.ZF.singleValue).toBe(42.11); diff --git a/src/prebarrage/pre_barrage.ts b/src/prebarrage/pre_barrage.ts index ff4af6d4..4456619b 100644 --- a/src/prebarrage/pre_barrage.ts +++ b/src/prebarrage/pre_barrage.ts @@ -219,7 +219,7 @@ export class PreBarrage extends Nub { } this._children = tmp; } // else already at the right position, do nothing - this.updatePointers(); + this.updatePointers(); } /** -- GitLab