Skip to content

Commit

Permalink
fix: error method return type (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek authored Jun 26, 2024
1 parent 713a0ae commit 622090b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export class UnleashClient extends TinyEmitter {
return this.readyEventEmitted;
}

public getError(): SdkState {
public getError() {
return this.sdkState === 'error' ? this.lastError : undefined;
}

Expand Down

0 comments on commit 622090b

Please sign in to comment.