Skip to content

Commit 4b0bc6b

Browse files
committed
autoformat
1 parent abcdfe3 commit 4b0bc6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ private module LibraryNames {
2929
string ws() { result = "ws" }
3030

3131
class LibraryName extends string {
32-
LibraryName() {
33-
this = sockjs() or this = websocket() or this = ws()
34-
}
32+
LibraryName() { this = sockjs() or this = websocket() or this = ws() }
3533
}
3634
}
3735

3836
/**
3937
* Holds if the websocket library named `client` can send a message to the library named `server`.
4038
* Both `client` and `server` are library names defined in `LibraryNames`.
4139
*/
42-
private predicate areLibrariesCompatible(LibraryNames::LibraryName client, LibraryNames::LibraryName server) {
40+
private predicate areLibrariesCompatible(
41+
LibraryNames::LibraryName client, LibraryNames::LibraryName server
42+
) {
4343
// sockjs is a WebSocket emulating library, but not actually an implementation of WebSockets.
4444
client = LibraryNames::sockjs() and server = LibraryNames::sockjs()
4545
or

0 commit comments

Comments
 (0)