Skip to content

Refactor getFieldValue to simplify author and editor resolution #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dhanashreep7853
Copy link
Owner

This PR refactors the getFieldValue method in BracketedPattern.java to improve code clarity and maintainability by simplifying the logic for resolving author and editor names.

Changes made:

Removed redundant conditions and unnecessary fallbacks.

Streamlined the handling of auth and pureauth cases for better readability.

Ensured proper resolution of author/editor names without altering functionality.

Closes JabRef#12566.

Mandatory checks

[x] I own the copyright of the code submitted and license it under the MIT license.

[ ] Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user).

[ ] Tests created for changes (if applicable).

[ ] Manually tested changed features in running JabRef (always required).

[ ] Screenshots added in PR description (for UI changes).

[ ] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.

[ ] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or submitted a pull request to the documentation repository.

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.

Make strings consistent
1 participant