Skip to content

Commit

Permalink
Unify signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
JimiC committed Jul 22, 2020
1 parent 1df8dfb commit 8d00985
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/app/integrity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/unified-signatures */
import ajv from 'ajv';
import { createHash, getHashes, Hash, HexBase64Latin1Encoding } from 'crypto';
import { createReadStream, Stats } from 'fs';
Expand Down Expand Up @@ -32,8 +31,6 @@ export class Integrity {
/** @internal */
private static rootDirPath = '';

public static async check(fileOrDirPath: string, integrity: string): Promise<boolean>;
public static async check(fileOrDirPath: string, integrity: string, options: IntegrityOptions): Promise<boolean>;
public static async check(
fileOrDirPath: string, integrity: string, options?: IntegrityOptions): Promise<boolean> {
if (!fileOrDirPath || typeof fileOrDirPath !== 'string' ||
Expand Down
2 changes: 1 addition & 1 deletion test/cli/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('CLI: tests', function (): void {
let configExplorerStub: sinon.SinonStub<[], Promise<void>>;
let ypParseStub: sinon.SinonStub<[], ParsedArgs>;
let icCreateStub: sinon.SinonStub<[string, (IntegrityOptions | undefined)?], Promise<IntegrityObject>>;
let icCheckStub: sinon.SinonStub<[string, string, IntegrityOptions], Promise<boolean>>;
let icCheckStub: sinon.SinonStub<[string, string, IntegrityOptions?], Promise<boolean>>;
let isTTY: true | undefined;

beforeEach(function (): void {
Expand Down

0 comments on commit 8d00985

Please sign in to comment.