Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hrhosni committed Feb 24, 2021
1 parent 685e0b4 commit 0c6fdaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/decodeOpaqueId.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import config from "./config.js";
* @method
* @memberof GraphQL/Transforms
* @summary Transforms an opaque ID to an internal ID. Returns the `id`
* unchanged and the `namespace` as null if the `REACTION_SHOULD_ENCODE_IDS`
* unchanged and the `namespace` as null if the `REACTION_SHOULD_ENCODE_IDS`
* environment variable is `false`
* @param {String} opaqueId The ID to transform
* @returns {String} An internal ID
Expand All @@ -17,8 +17,7 @@ export default function decodeOpaqueId(opaqueId) {
return { namespace: null, id: opaqueId };
}

const [namespace, id] = Buffer
.from(opaqueId, "base64")
const [namespace, id] = Buffer.from(opaqueId, "base64")
.toString("utf8")
.split(":", 2);

Expand Down

0 comments on commit 0c6fdaf

Please sign in to comment.