Skip to content

Commit f29ded7

Browse files
committed
fix lint
1 parent 1422758 commit f29ded7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/KeyPair.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ export class KeyPair {
9090
*
9191
*/
9292
public static async importFromFile(filename: string, password: string): Promise<KeyPair> {
93-
94-
const fs = await import('fs')
93+
const fs = await import('fs')
9594
if (fs.existsSync(filename)) {
9695
const data = await fs.promises.readFile(filename)
9796
return KeyPair.importFromString(data.toString(), password)
@@ -125,7 +124,7 @@ export class KeyPair {
125124
*
126125
*/
127126
public async exportToFile(filename: string, password: string): Promise<unknown> {
128-
const fs = await import('fs')
127+
const fs = await import('fs')
129128
return await fs.promises.writeFile(filename, this.exportToString(password))
130129
}
131130

0 commit comments

Comments
 (0)