Skip to content

Commit

Permalink
chore: minor eslint and type fixes (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored Jun 10, 2024
1 parent e8fcb2c commit 4d874e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
getNodeArch,
ensureIsTruthyString,
isOfficialLinuxIA32Download,
withTempDirectory,
} from './utils';

export { getHostArch } from './utils';
Expand All @@ -41,7 +40,7 @@ async function validateArtifact(
artifactDetails: ElectronArtifactDetails,
downloadedAssetPath: string,
_downloadArtifact: ArtifactDownloader,
) {
): Promise<void> {
return await withTempDirectoryIn(artifactDetails.tempDirectory, async tempFolder => {
// Don't try to verify the hash of the hash file itself
// and for older versions that don't have a SHASUMS256.txt
Expand Down
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ export type ElectronArtifactDetails =
| ElectronPlatformArtifactDetails
| ElectronGenericArtifactDetails;

export type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;

export type ElectronPlatformArtifactDetailsWithDefaults =
| (Omit<ElectronPlatformArtifactDetails, 'platform' | 'arch'> & {
platform?: string;
Expand Down

0 comments on commit 4d874e2

Please sign in to comment.