mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
fix: Added linting rule to disable use of object prototypes (#2939)
This commit is contained in:
@@ -20,7 +20,7 @@ export async function mapFieldsetToErrorCodes<T>(
|
||||
if (err instanceof CoralError) {
|
||||
// Then loop over all the fieldSpecs...
|
||||
for (const param in errorMap) {
|
||||
if (!errorMap.hasOwnProperty(param)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(errorMap, param)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export function loadPersistedQueries(): PersistedQuery[] {
|
||||
// Go over each of the persisted queries and collect the ID and query to
|
||||
// merge in.
|
||||
for (const id in persistedQueries) {
|
||||
if (!persistedQueries.hasOwnProperty(id)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(persistedQueries, id)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user