Skip to content

Commit c82705a

Browse files
committed
update asset from @rails/request.js
1 parent 0af599e commit c82705a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/assets/javascripts/requestjs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class RequestInterceptor {
9292
function getCookie(name) {
9393
const cookies = document.cookie ? document.cookie.split("; ") : [];
9494
const prefix = `${encodeURIComponent(name)}=`;
95-
const cookie = cookies.find((cookie => cookie.startsWith(prefix)));
95+
const cookie = cookies.find(cookie => cookie.startsWith(prefix));
9696
if (cookie) {
9797
const value = cookie.split("=").slice(1).join("=");
9898
if (value) {
@@ -118,7 +118,7 @@ function metaContent(name) {
118118
}
119119

120120
function stringEntriesFromFormData(formData) {
121-
return [ ...formData ].reduce(((entries, [name, value]) => entries.concat(typeof value === "string" ? [ [ name, value ] ] : [])), []);
121+
return [ ...formData ].reduce((entries, [name, value]) => entries.concat(typeof value === "string" ? [ [ name, value ] ] : []), []);
122122
}
123123

124124
function mergeEntries(searchParams, entries) {

0 commit comments

Comments
 (0)