]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix linting issues
authorLaura Flores <lflores@redhat.com>
Wed, 8 Sep 2021 19:48:43 +0000 (19:48 +0000)
committerLaura Flores <lflores@redhat.com>
Wed, 8 Sep 2021 19:48:43 +0000 (19:48 +0000)
Signed-off-by: Laura Flores <lflores@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts

index 5879dbd447107f3fa8b03e9076b64ec174688511..e40ba5190ad424bbec5deaf8ea5dda880e23c4e1 100644 (file)
@@ -89,7 +89,7 @@ export class TelemetryComponent extends CdForm implements OnInit {
   }
 
   private replacer(key: string, value: any) {
-    if ((key === 'ranges' || key === 'values') && (Array.isArray(value))) {
+    if ((key === 'ranges' || key === 'values') && Array.isArray(value)) {
       const x = [];
       for (let i = 0; i < value.length; i++) {
         x.push(JSON.stringify(value[i]));