Skip to content

Commit

Permalink
Fix for prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbjensen committed Aug 17, 2024
1 parent fd09ec5 commit ac7c6ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class Sarus {
url,
binaryType,
protocols,
eventListeners,// = DEFAULT_EVENT_LISTENERS_OBJECT,
eventListeners, // = DEFAULT_EVENT_LISTENERS_OBJECT,
reconnectAutomatically,
retryProcessTimePeriod, // TODO - write a test case to check this
retryConnectionDelay,
Expand Down Expand Up @@ -304,13 +304,15 @@ export default class Sarus {
* @param {object} eventListeners - The eventListeners object parameter
* @returns {object} The eventListeners object parameter, with any missing events prefilled in
*/
auditEventListeners(eventListeners: PartialEventListenersInterface | undefined) {
auditEventListeners(
eventListeners: PartialEventListenersInterface | undefined,
) {
return {
open: eventListeners?.open || [],
message: eventListeners?.message || [],
error: eventListeners?.error || [],
close: eventListeners?.close || [],
}
};
}

/**
Expand Down

0 comments on commit ac7c6ad

Please sign in to comment.