Skip to content

Commit 3dbfd37

Browse files
committed
client: js: lint
1 parent 2d8e18a commit 3dbfd37

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

clients/js/lib/client.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class RaccoonClient extends EventEmitter {
5555
this.timeout = options.timeout || 1000;
5656
this.uuidGenerator = () => uuidv4();
5757
this.protocol = options.protocol || 'rest';
58-
58+
5959
if (this.protocol === 'rest') {
6060
this.httpClient = axios.create();
6161
} else if (this.protocol === 'ws') {
@@ -131,13 +131,12 @@ class RaccoonClient extends EventEmitter {
131131
);
132132

133133
this.logger.info(`ended request, url: ${this.url}, req-id: ${requestId}`);
134-
135134

136135
if (this.protocol !== 'rest') {
137136
return {
138-
reqId: requestId,
137+
reqId: requestId
139138
};
140-
}
139+
}
141140

142141
const sendEventResponse = this.marshaller.unmarshal(
143142
response,
@@ -148,7 +147,6 @@ class RaccoonClient extends EventEmitter {
148147
response: sendEventResponse.toJSON(),
149148
error: null
150149
};
151-
152150
} catch (error) {
153151
this.logger.error(`error, url: ${this.url}, req-id: ${requestId}, ${error}`);
154152
throw new Error(`req-id: ${requestId}, error: ${error}`);

0 commit comments

Comments
 (0)