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

Another false positive #20

Closed
bunyk opened this issue Oct 8, 2021 · 0 comments · Fixed by #21
Closed

Another false positive #20

bunyk opened this issue Oct 8, 2021 · 0 comments · Fixed by #21

Comments

@bunyk
Copy link
Contributor

bunyk commented Oct 8, 2021

	daysInWeekend := 2
	weekendDuration := time.Duration(daysInWeekend) * 24 * time.Hour // durationcheck complains
	weekendDuration2 := time.Duration(daysInWeekend*24) * time.Hour // fine for durationcheck

weekendDuration, and weekendDuration2 both contain the correct duration of 48h.

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 a pull request may close this issue.

1 participant