Skip to content

Commit

Permalink
Fix new lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed Jan 28, 2025
1 parent 5a19d1b commit da993f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/caching/github-actions-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ export class GitHubActionsCache implements Cache {
],
(error: unknown) => {
if (error != null) {
reject(new Error(`tar error: ${String(error)}`));
reject(new Error(`tar error: ${String(error as Error)}`));
} else {
resolve();
}
Expand Down Expand Up @@ -688,7 +688,7 @@ class GitHubActionsCacheHit implements CacheHit {
['--extract', '--file', tarballPath, '--gzip', '-P'],
(error: unknown) => {
if (error != null) {
reject(new Error(`tar error: ${String(error)}`));
reject(new Error(`tar error: ${String(error as Error)}`));
} else {
resolve();
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export async function createWriteStream(
export async function copyFile(
src: fsTypes.PathLike,
dest: fsTypes.PathLike,
flags?: number | undefined,
flags?: number,
) {
const reservation = await fileBudget.reserve();
try {
Expand Down

0 comments on commit da993f3

Please sign in to comment.