From abe68e2325fa59989a34d66bd0931683fc284f77 Mon Sep 17 00:00:00 2001
From: Xiao Gui <xgui3783@gmail.com>
Date: Fri, 5 Aug 2022 18:47:52 +0200
Subject: [PATCH] fix lint

---
 .../sapi/core/space/interspaceLinearXform.ts  | 22 +++++++------------
 .../nehubaViewerGlue.component.ts             |  2 +-
 2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/src/atlasComponents/sapi/core/space/interspaceLinearXform.ts b/src/atlasComponents/sapi/core/space/interspaceLinearXform.ts
index 9c292fd48..44c93c741 100644
--- a/src/atlasComponents/sapi/core/space/interspaceLinearXform.ts
+++ b/src/atlasComponents/sapi/core/space/interspaceLinearXform.ts
@@ -17,15 +17,15 @@ const _linearXformDict: Record<
     keyof typeof VALID_LINEAR_XFORM_DST,
     TLinearXform
   >> = {
-  CCF: {
-    NEHUBA: [
-      [-1e3, 0, 0, 11400000 - 5737500], //
-      [0, 0, -1e3, 13200000 - 6637500], //
-      [0, -1e3, 0, 8000000 - 4037500], //
-      [0, 0, 0, 1],
-    ]
+    CCF: {
+      NEHUBA: [
+        [-1e3, 0, 0, 11400000 - 5737500], //
+        [0, 0, -1e3, 13200000 - 6637500], //
+        [0, -1e3, 0, 8000000 - 4037500], //
+        [0, 0, 0, 1],
+      ]
+    }
   }
-}
 
 const defaultXform = [
   [1e3, 0, 0, 0],
@@ -34,12 +34,6 @@ const defaultXform = [
   [0, 0, 0, 1],
 ]
 
-const s = `
-  LIP
-  [ 11400000, 13200000, 8000000 ]
-  RSP
-  RAS
-`
 
 const getProxyXform = <T>(obj: Record<string, T>, cb: (value: T) => T) => new Proxy({}, {
   get: (_target, prop: string, _receiver) => {
diff --git a/src/viewerModule/nehuba/nehubaViewerGlue/nehubaViewerGlue.component.ts b/src/viewerModule/nehuba/nehubaViewerGlue/nehubaViewerGlue.component.ts
index e0ff55b6a..5c16b0a06 100644
--- a/src/viewerModule/nehuba/nehubaViewerGlue/nehubaViewerGlue.component.ts
+++ b/src/viewerModule/nehuba/nehubaViewerGlue/nehubaViewerGlue.component.ts
@@ -291,7 +291,7 @@ export class NehubaGlueCmp implements IViewer<'nehuba'>, OnDestroy, AfterViewIni
       let message = `The swc rendering is experimental. Please contact us on any feedbacks. `
       const swcText = await file.text()
       let src: TVALID_LINEAR_XFORM_SRC
-      let dst: TVALID_LINEAR_XFORM_DST = "NEHUBA"
+      const dst: TVALID_LINEAR_XFORM_DST = "NEHUBA"
       if (/ccf/i.test(swcText)) {
         src = "CCF"
         message += `CCF detected, applying known transformation.`
-- 
GitLab