Skip to content

Commit 2d7f2a5

Browse files
committed
fix(plugins): satisfy hook context lint
1 parent 13aea8e commit 2d7f2a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/plugins/registry.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ export function createPluginRegistry(registryParams: PluginRegistryParams) {
742742
for (const event of normalizedEvents) {
743743
const wrappedHandler: typeof handler = async (evt) => {
744744
const context = evt.context;
745-
const hadPluginConfig = Object.prototype.hasOwnProperty.call(context, "pluginConfig");
745+
const hadPluginConfig = Object.hasOwn(context, "pluginConfig");
746746
const previousPluginConfig = context.pluginConfig;
747747
// Internal hooks intentionally share one mutable context object across
748748
// handlers; only pluginConfig stays per-handler and is restored after.

0 commit comments

Comments
 (0)