Skip to content

Commit

Permalink
removed unnecessary isset check for dynamic_webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashish committed Oct 12, 2023
1 parent 37483e4 commit 145fb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-omise-setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@ public function secret_key() {
public function is_dynamic_webhook_enabled()
{
$dynamic_webhook = $this->settings['dynamic_webhook'];
return isset($dynamic_webhook) && (bool)$dynamic_webhook;
return (bool)$dynamic_webhook;
}
}

0 comments on commit 145fb58

Please sign in to comment.