File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ private module LibraryNames {
29
29
string ws ( ) { result = "ws" }
30
30
31
31
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 ( ) }
35
33
}
36
34
}
37
35
38
36
/**
39
37
* Holds if the websocket library named `client` can send a message to the library named `server`.
40
38
* Both `client` and `server` are library names defined in `LibraryNames`.
41
39
*/
42
- private predicate areLibrariesCompatible ( LibraryNames:: LibraryName client , LibraryNames:: LibraryName server ) {
40
+ private predicate areLibrariesCompatible (
41
+ LibraryNames:: LibraryName client , LibraryNames:: LibraryName server
42
+ ) {
43
43
// sockjs is a WebSocket emulating library, but not actually an implementation of WebSockets.
44
44
client = LibraryNames:: sockjs ( ) and server = LibraryNames:: sockjs ( )
45
45
or
You can’t perform that action at this time.
0 commit comments