Skip to content
New issue

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

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

Already on GitHub? # to your account

STYLE: Simplify creating string representation of stop conditions #1296

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

N-Dekker
Copy link
Member

Replaced break statements in switch cases by return statements, directly returning the appropriate string, in Optimizers.

Using Notepad++, Replace in Files:

Find what: ^  ([ ]+)stopcondition = "(.+)";\r\n  \1break;\r\n
Replace with: $1return "$2";
(*) Regular expression

Replaced `break` statements in `switch` cases by `return` statements, directly returning the appropriate string, in Optimizers.

Using Notepad++, Replace in Files:

    Find what: ^  ([ ]+)stopcondition = "(.+)";\r\n  \1break;\r\n
    Replace with: $1return "$2";
    (*) Regular expression
@N-Dekker N-Dekker merged commit b53e1ba into main Feb 13, 2025
7 of 8 checks passed
@N-Dekker N-Dekker deleted the Simplify-string-stopcondition branch February 13, 2025 14:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant