From 292c780cb8f12b9f3ad971e3ac30b1ad450aeed8 Mon Sep 17 00:00:00 2001 From: Fine Date: Wed, 7 Jun 2023 08:34:05 +0800 Subject: [PATCH] fix: code style --- src/hooks/useExpressionsProcessor.ts | 3 +-- src/hooks/useMetricsProcessor.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hooks/useExpressionsProcessor.ts b/src/hooks/useExpressionsProcessor.ts index 345fde92..a40001c4 100644 --- a/src/hooks/useExpressionsProcessor.ts +++ b/src/hooks/useExpressionsProcessor.ts @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { RespFields, Calculations } from "./data"; +import { RespFields } from "./data"; import { ExpressionResultType } from "@/views/dashboard/data"; import { ElMessage } from "element-plus"; import { useDashboardStore } from "@/store/modules/dashboard"; @@ -22,7 +22,6 @@ import { useSelectorStore } from "@/store/modules/selectors"; import { useAppStoreWithOut } from "@/store/modules/app"; import type { MetricConfigOpt } from "@/types/dashboard"; import type { Instance, Endpoint, Service } from "@/types/selector"; -import { calculateExp } from "./useMetricsProcessor"; export function useExpressionsQueryProcessor(config: Indexable) { if (!(config.metrics && config.metrics[0])) { diff --git a/src/hooks/useMetricsProcessor.ts b/src/hooks/useMetricsProcessor.ts index b0bbaf71..b8ecc895 100644 --- a/src/hooks/useMetricsProcessor.ts +++ b/src/hooks/useMetricsProcessor.ts @@ -22,7 +22,6 @@ import { useSelectorStore } from "@/store/modules/selectors"; import { useAppStoreWithOut } from "@/store/modules/app"; import type { Instance, Endpoint, Service } from "@/types/selector"; import type { MetricConfigOpt } from "@/types/dashboard"; -import type { E } from "vitest/dist/types-c441ef31"; export function useQueryProcessor(config: Indexable) { if (!(config.metrics && config.metrics[0])) {