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 {
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 } ` ) ;
You can’t perform that action at this time.
0 commit comments