Refactored code to match code-style

This commit is contained in:
2021-12-02 13:40:56 +01:00
parent 9095e21e6f
commit 56ac283544
11 changed files with 143 additions and 141 deletions

View File

@@ -1,4 +1,4 @@
const { HandshakeStage } = require.main.require('./dto/Packet.js');
const { HandshakeStage } = require.main.require("./dto/Packet.js");
function keyInfoFromRaw(keyInfoRaw) {
return {
@@ -27,7 +27,7 @@ function handshakeStageFromKeyInfo(keyInfo){
// Extract compare-keys
let keyData = "";
for (const key of HANDSHAKE_STAGE_KEYINFO['keys']) {
for (const key of HANDSHAKE_STAGE_KEYINFO["keys"]) {
keyData += keyInfo[key].toString();
}