Skip to content

Commit

Permalink
refactor(index): use Object.hasOwn() (#439)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <[email protected]>
  • Loading branch information
Fdawgs authored Oct 19, 2024
1 parent 5f30f93 commit 6fb6017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ async function fastifyView (fastify, opts) {
}
if (localOptions) {
for (const key in globalOptions) {
if (!Object.prototype.hasOwnProperty.call(localOptions, key)) localOptions[key] = globalOptions[key]
if (!Object.hasOwn(localOptions, key)) localOptions[key] = globalOptions[key]
}
} else localOptions = globalOptions

Expand Down

0 comments on commit 6fb6017

Please sign in to comment.