Skip to content

Commit 0b6d47a

Browse files
committed
remove custom error wrapper
1 parent 6e3ea87 commit 0b6d47a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/core/src/awsService/ec2/sshKeyPair.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ export class SshKeyPair {
7878
}
7979

8080
public async delete(): Promise<void> {
81-
if (await fs.existsDir(this.keyPath)) {
82-
throw new Error('ec2: key path points to directory, not file')
83-
}
84-
8581
await fs.delete(this.keyPath)
8682
await fs.delete(this.publicKeyPath)
8783

0 commit comments

Comments
 (0)