Skip to content

Commit ae3d8da

Browse files
authored
Clarifying if statement formatting
Currently the `if` block looks like it's part of the larger `if/else` block above it, but it's a separate declaration. Adding a newline makes it immediately clear that these are separate logical blocks to readers of the code.
1 parent 52471ef commit ae3d8da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/packets/handshake_response.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ HandshakeResponse.fromPacket = function (packet)
5454
args.authToken = packet.readBuffer(authTokenLength);
5555
} else {
5656
args.authToken = packet.readNullTerminatedString(encoding);
57-
} if (isSet('CONNECT_WITH_DB')) {
57+
}
58+
if (isSet('CONNECT_WITH_DB')) {
5859
args.database = packet.readNullTerminatedString(encoding);
5960
}
6061
if (isSet('PLUGIN_AUTH')) {

0 commit comments

Comments
 (0)