File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class RaccoonClient extends EventEmitter {
55
55
this . timeout = options . timeout || 1000 ;
56
56
this . uuidGenerator = ( ) => uuidv4 ( ) ;
57
57
this . protocol = options . protocol || 'rest' ;
58
-
58
+
59
59
if ( this . protocol === 'rest' ) {
60
60
this . httpClient = axios . create ( ) ;
61
61
} else if ( this . protocol === 'ws' ) {
@@ -131,13 +131,12 @@ class RaccoonClient extends EventEmitter {
131
131
) ;
132
132
133
133
this . logger . info ( `ended request, url: ${ this . url } , req-id: ${ requestId } ` ) ;
134
-
135
134
136
135
if ( this . protocol !== 'rest' ) {
137
136
return {
138
- reqId : requestId ,
137
+ reqId : requestId
139
138
} ;
140
- }
139
+ }
141
140
142
141
const sendEventResponse = this . marshaller . unmarshal (
143
142
response ,
@@ -148,7 +147,6 @@ class RaccoonClient extends EventEmitter {
148
147
response : sendEventResponse . toJSON ( ) ,
149
148
error : null
150
149
} ;
151
-
152
150
} catch ( error ) {
153
151
this . logger . error ( `error, url: ${ this . url } , req-id: ${ requestId } , ${ error } ` ) ;
154
152
throw new Error ( `req-id: ${ requestId } , error: ${ error } ` ) ;
You can’t perform that action at this time.
0 commit comments