Skip to content

Commit

Permalink
set return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerth committed Jul 18, 2023
1 parent 2757217 commit 3c01c7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adabas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ export class Adabas {
this.connected = false;
}

private open(fnr: number, mode = 'UPD') {
private open(fnr: number, mode = 'UPD'): Promise<void> {
return new Promise(async (resolve, reject) => {
if (this.status === Status.Open) {
resolve();
resolve(null);
}
else {
const cb = new ControlBlock();
Expand All @@ -329,7 +329,7 @@ export class Adabas {
reject(this.getMessage(this.cb));
}
this.status = Status.Open;
resolve();
resolve(null);
}
});
}
Expand Down

0 comments on commit 3c01c7e

Please sign in to comment.