Skip to content

Commit

Permalink
Remove partial
Browse files Browse the repository at this point in the history
  • Loading branch information
mmgoodnow committed Dec 28, 2021
1 parent 9a4b203 commit b252359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/preFilter.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { uniqBy } from "lodash-es";
import { Metafile } from "parse-torrent";
import path from "path";
import { EP_REGEX, EXTENSIONS } from "./constants.js";
import db, { Schema } from "./db.js";
import db from "./db.js";
import { Label, logger } from "./logger.js";
import { getRuntimeConfig } from "./runtimeConfig.js";
import { Searchee } from "./searchee.js";
import { nMinutesAgo, partial } from "./utils.js";
import { nMinutesAgo } from "./utils.js";

const extensionsWithDots = EXTENSIONS.map((e) => `.${e}`);

Expand Down
6 changes: 0 additions & 6 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ export function stripExtension(filename: string): string {
return filename;
}

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const partial =
(func, ...presets) =>
(...args) =>
func(...presets, ...args);

export function nMinutesAgo(n: number): number {
const date = new Date();
date.setMinutes(date.getMinutes() - n);
Expand Down

0 comments on commit b252359

Please sign in to comment.