Skip to content

Commit c366e8f

Browse files
committed
chore: Auto-format JavaScript files with Prettier
1 parent cc5561a commit c366e8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/static/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ export function themeSave(a_theme, a_cb) {
10221022
function generateState() {
10231023
const array = new Uint8Array(16);
10241024
window.crypto.getRandomValues(array);
1025-
return Array.from(array, b => b.toString(16).padStart(2, "0")).join("");
1025+
return Array.from(array, (b) => b.toString(16).padStart(2, "0")).join("");
10261026
}
10271027

10281028
export function getGlobusConsentURL(

web/test/api.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe("getGlobusConsentURL", function () {
6969
// Check that state exists and matches the format generated by generateState
7070
expect(options.data.state).to.be.a("string");
7171
expect(options.data.state).to.match(/^[0-9a-f]{32}$/); // 16 bytes -> 32 hex chars
72-
72+
7373
options.success({ consent_url: "http://example.com" });
7474
});
7575

0 commit comments

Comments
 (0)