mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
fix: Added linting rule to disable use of object prototypes (#2939)
This commit is contained in:
@@ -31,7 +31,7 @@ const persistedQueriesGetMethodMiddleware: Middleware = (next) => async (
|
||||
// Rebuild the query parameters for GET.
|
||||
const params: Record<string, string> = { query: "" };
|
||||
for (const key in body) {
|
||||
if (!body.hasOwnProperty(key)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(body, key)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user