Skip to content

Commit

Permalink
Merge pull request #40 from quark-bot-discord/deepsource-autofix-2d95…
Browse files Browse the repository at this point in the history
…722f

refactor: replace builtin prototype method with `Object.prototype` equivalent
  • Loading branch information
Starman3787 authored Jul 14, 2024
2 parents 79a0e26 + 36cf135 commit c8d2f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest/betterRequestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class BetterRequestHandler {
const serialize = (obj) => {
let str = [];
for (let p in obj)
if (obj.hasOwnProperty(p))
if (Object.prototype.hasOwnProperty.call(obj, p))
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
return str.join("&");
};
Expand Down

0 comments on commit c8d2f48

Please sign in to comment.