Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate "case 'description'" #2533

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Remove duplicate "case 'description'" #2533

merged 1 commit into from
Feb 10, 2022

Conversation

sjinks
Copy link
Contributor

@sjinks sjinks commented Dec 19, 2021

Description of the Change

This PR removes a duplicate case 'description': from ElasticPress\Indexable\Term\Term::parse_orderby().

Alternate Designs

N/A

Benefits

Dead code elimination.

Possible Drawbacks

N/A

Verification Process

Run the test suite locally.

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

N/A

Changelog Entry

Removed a duplicate case 'description': from ElasticPress\Indexable\Term\Term::parse_orderby()

Comment on lines -1013 to -1015
case 'description':
$es_field_name = 'description.sortable';
break;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly the same code is on line 995.

@felipeelia felipeelia merged commit b75e998 into 10up:develop Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants