Skip to content

Commit

Permalink
fix: lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot committed Jan 16, 2025
1 parent af2665c commit aea0c9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/metrics/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class AuthMethod {
}

class OpenPAYGOMetricsShared {

static CONDENSED_KEY_NAMES = {
// Request
serial_number: "sn",
Expand Down Expand Up @@ -120,7 +119,7 @@ class OpenPAYGOMetricsShared {
key: secretKey,
})
break
case AuthMethod.DATA_AUTH:
case AuthMethod.DATA_AUTH: {
let payload = data.serial_number
if (data.timestamp) payload += String(data.timestamp)
if (data.request_count) payload += String(data.request_count)
Expand All @@ -129,7 +128,8 @@ class OpenPAYGOMetricsShared {
payload += this.convertToMetricsJson(data.historical_data)
signature = this.generateHashString({ msg: payload, key: secretKey })
break
case AuthMethod.RECURSIVE_DATA_AUTH:
}
case AuthMethod.RECURSIVE_DATA_AUTH: {
let recursivePayload = this.generateHashString({
msg: data.serial_number,
key: secretKey,
Expand All @@ -156,6 +156,7 @@ class OpenPAYGOMetricsShared {
}
signature = recursivePayload
break
}
default:
throw new Error("Invalid Authentication Method")
}
Expand Down

0 comments on commit aea0c9d

Please sign in to comment.