Skip to content

Commit

Permalink
Most of codacy warnings resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Jun 10, 2024
1 parent 3010311 commit 4bd6311
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/client/socket/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ class SocketEvent {

this.jiffClient.socket.on('crypto_provider', (msg, callback) => {
callback(true); // send ack to server
if (msg.op_id != null) {
const msg = JSON.parse(msg);
this.jiffClient.handlers.receive_crypto_provider(msg);
}
this.jiffClient.handlers.receive_crypto_provider(JSON.parse(msg));

Check failure on line 85 in lib/client/socket/events.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/socket/events.js#L85

Passing untrusted user input in `xpath.parse()` can result in XPATH injection vulnerability.
});

this.jiffClient.socket.on('error', (msg) => {

Check warning on line 88 in lib/client/socket/events.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/socket/events.js#L88

Detect inappropriate function body content
Expand Down

0 comments on commit 4bd6311

Please sign in to comment.