Skip to content

Commit

Permalink
chore: Linter and compliance met
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed May 17, 2024
1 parent d503527 commit 8431474
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/mutation/class-tax-class-delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public static function mutate_and_get_payload() {
if ( ! \wc_rest_check_manager_permissions( 'settings', 'delete' ) ) {
throw new UserError( __( 'Sorry, you are not allowed to delete tax classes.', 'wp-graphql-woocommerce' ), \rest_authorization_required_code() );
}
$slug = $input['slug'];
$slug = $input['slug'];

/** @var array|false $tax_class */
$tax_class = \WC_Tax::get_tax_class_by( 'slug', $slug );
if ( ! $tax_class ) {
Expand Down

0 comments on commit 8431474

Please sign in to comment.