From c87b8dded3585b7ae380630fe920d5365aa7c97c Mon Sep 17 00:00:00 2001 From: Angel Wang Date: Tue, 23 Jun 2026 17:06:46 -0600 Subject: [PATCH] style(treewide): deno fmt --- .github/workflows/build.yml | 2 +- src/analyze/index.ts | 1 - src/apply/index.ts | 16 +++------------- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fee7292..47a3365 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,7 @@ jobs: linux-x86_64: runs-on: ubuntu-latest - + steps: - name: Setup repo uses: actions/checkout@v4 diff --git a/src/analyze/index.ts b/src/analyze/index.ts index 7b558bc..81c3cb8 100755 --- a/src/analyze/index.ts +++ b/src/analyze/index.ts @@ -22,7 +22,6 @@ if (fs.statSync(cachePath)) { await fs.cp(cachePath, `${cachePath}.bak`, { force: true }) } - const imageData = { files: [] } as ImageAnalysisData await runPreAnalysis(config.preAnalysisCommands) diff --git a/src/apply/index.ts b/src/apply/index.ts index 41c967b..703ffac 100644 --- a/src/apply/index.ts +++ b/src/apply/index.ts @@ -1,14 +1,6 @@ import { colordx } from "@colordx/core" import type { ImageAnalysisData } from "../analyze/analysis.ts" -import { - applyConfigPath, - cachePath, - chalkDebug, - easeOutQuint, - loadConfig, - map, - mapEased, -} from "../utils.ts" +import { applyConfigPath, cachePath, chalkDebug, easeOutQuint, loadConfig, map, mapEased } from "../utils.ts" import { type ApplicationConfig, defaultConfig, findMatchingImages, getOpenMeteoData } from "./application.ts" import * as SunCalc from "suncalc" import "zx/globals" @@ -44,9 +36,7 @@ const nadirSunData = SunCalc.getPosition( ) console.info(`Current cloud cover percentage is ${openMeteoData.cloudCover}%!`) -console.info( - `Current shortwave radiation is ${openMeteoData.shortwaveRadiation} W/m²!`, -) +console.info(`Current shortwave radiation is ${openMeteoData.shortwaveRadiation} W/m²!`) console.info(`Current sun altitude is ${currentSunData.altitude}°!`) const hueValue = Number(currentSunData.altitude) >= -0.833 @@ -67,7 +57,7 @@ let lightnessValue = mapEased( 1000, config.lightnessRange.start, config.lightnessRange.end, - (x: number) => Math.pow(x, 1/4), + (x: number) => Math.pow(x, 1 / 4), ) // if the current sun altitude is less than that of dawn/dusk -- 2.51.2