Skip to content

Commit 997b449

Browse files
committed
JS: Autoformat
1 parent 4fc79e3 commit 997b449

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

javascript/ql/src/semmle/javascript/frameworks/SocketIO.qll

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,7 @@ module SocketIO {
283283
SendNode getASender() { result.getAReceiver() = this }
284284

285285
/** Gets the acknowledgment callback, if any. */
286-
ReceiveCallback getAck() {
287-
result.getReceiveNode() = this
288-
}
286+
ReceiveCallback getAck() { result.getReceiveNode() = this }
289287

290288
/** DEPRECATED. Use `getChannel()` instead. */
291289
deprecated string getEventName() { result = getChannel() }
@@ -374,9 +372,7 @@ module SocketIO {
374372
}
375373

376374
/** Gets the acknowledgment callback, if any. */
377-
SendCallback getAck() {
378-
result.getSendNode() =this
379-
}
375+
SendCallback getAck() { result.getSendNode() = this }
380376

381377
/** DEPRECATED. Use `getChannel()` instead. */
382378
deprecated string getEventName() { result = getChannel() }
@@ -573,9 +569,7 @@ module SocketIOClient {
573569
DataFlow::SourceNode getAReceivedItem() { result = getReceivedItem(_) }
574570

575571
/** Gets the acknowledgment callback, if any. */
576-
DataFlow::SourceNode getAck() {
577-
result.(ReceiveCallback).getReceiveNode() = this
578-
}
572+
DataFlow::SourceNode getAck() { result.(ReceiveCallback).getReceiveNode() = this }
579573

580574
/** Gets a server-side node that may be sending the data received here. */
581575
SocketIO::SendNode getASender() {
@@ -660,9 +654,7 @@ module SocketIOClient {
660654
}
661655

662656
/** Gets the acknowledgment callback, if any. */
663-
DataFlow::FunctionNode getAck() {
664-
result.(SendCallback).getSendNode() = this
665-
}
657+
DataFlow::FunctionNode getAck() { result.(SendCallback).getSendNode() = this }
666658

667659
/** DEPRECATED. Use `getChannel()` instead. */
668660
deprecated string getEventName() { result = getChannel() }

0 commit comments

Comments
 (0)