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 minimum time, hardcode to 0. #402

Merged
merged 1 commit into from
Dec 8, 2019
Merged

Remove minimum time, hardcode to 0. #402

merged 1 commit into from
Dec 8, 2019

Conversation

brian-brazil
Copy link
Contributor

The ruleset settings for it were removed in #176, but these
were still hanging aroung.

The ruleset settings for it were removed in #176, but these
were still hanging aroung.
@@ -56,15 +55,15 @@ else if (flag != Flag.INTERNAL) {
if ((flag == Flag.RESET && isCountDirectionDown()) || (Long)value > getMaximumTime() + 500 && (!isCountDirectionDown() || flag != Flag.RECALCULATE)) {
return getMaximumTime();
}
if ((flag == Flag.RESET && !isCountDirectionDown()) || (Long)value < getMinimumTime() - 500) {
return getMinimumTime();
if ((flag == Flag.RESET && !isCountDirectionDown()) || (Long)value < 0 - 500) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not -500 directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did it this way so it matches the pattern of the if above it.

@frank-weinberg frank-weinberg merged commit 7a42704 into dev Dec 8, 2019
@brian-brazil brian-brazil deleted the min-time branch December 8, 2019 21:36
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.

2 participants