Skip to content

Commit

Permalink
Fix small TypeScript issue on TinySockets wrap function
Browse files Browse the repository at this point in the history
  • Loading branch information
WesSouza committed Jul 29, 2022
1 parent fc60331 commit 116328a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/TinySocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class TinySocket {

if (error) {
reject(error);
} else {
} else if (value !== undefined) {
resolve(value);
}
};
Expand Down

0 comments on commit 116328a

Please sign in to comment.