Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Jan 19, 2024
1 parent 2af7f93 commit 29f36f2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/commands/special/where.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ import { readFile } from "fs/promises";
import type { SpecialCommand } from "../command.js";
import { countWords, substringAfter } from "../../utils/stringUtils.js";


if (process.env.NODE_ENV === "production") {
// This is a simple detection if we're running inside docker
// We assume that every developer that wants to use this feature has impact installed
GlobalFonts.register(
await readFile("assets/impact.ttf"),
"Impact",
);
GlobalFonts.register(await readFile("assets/impact.ttf"), "Impact");
}

export class WhereCommand implements SpecialCommand {
Expand Down

0 comments on commit 29f36f2

Please sign in to comment.