Skip to content

Commit

Permalink
Remove unused imports and clear up code
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Jul 5, 2023
1 parent 8f44ad7 commit ed1e7e0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CasparCG } from "casparcg-connection";
import { OpenAPI } from "./generated";
import { FK_API, LAYERS, VIDEO_LAYER } from "./config";
import { FK_API, LAYERS } from "./config";
import process from "node:process";
import { log } from "./log.js";
import { Schedule } from "./scheduling/Schedule.js";
Expand Down
1 change: 0 additions & 1 deletion src/scheduling/InterstitialGraphics.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { InterstitialGraphics } from "./InterstitialGraphics.js";
import { add, sub, subMilliseconds } from "date-fns";
import { log } from "../log.js";

// mock out connection to CasparCG
jest.mock("../connection.js", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/scheduling/Schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Schedule {
};

start = () =>
new Promise(async (resolve, reject) => {
new Promise(async (_) => {
const now = new Date();
const schedule = await fetchSchedule(startOfDay(now), endOfDay(now));
await this.load(schedule);
Expand Down
2 changes: 1 addition & 1 deletion src/scheduling/ScheduleFetcher.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetchSchedule } from "./ScheduleFetcher.js";
import { add, addMilliseconds, endOfDay, startOfDay } from "date-fns";
import { addMilliseconds, endOfDay, startOfDay } from "date-fns";
import { makeTestVideo } from "./ScheduledVideo.test.js";

// Generate test schedule
Expand Down

0 comments on commit ed1e7e0

Please sign in to comment.