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

[R-package] remove unreachable code #6180

Merged
merged 1 commit into from
Nov 8, 2023
Merged

[R-package] remove unreachable code #6180

merged 1 commit into from
Nov 8, 2023

Conversation

jameslamb
Copy link
Collaborator

@jameslamb jameslamb commented Nov 8, 2023

A new version of {lintr} was released today (CRAN link) and it caught an unreachable line of code in the R package!

R-package/R/lgb.Booster.R:1465:5: warning: [unreachable_code] Code and comments coming after a return() or stop() should be removed.
stop("lgb.get.eval.result: wrong eval name")

This PR fixes that.

Notes

Not sure exactly which {lintr} change resulted in this being caught, but I think it's r-lib/lintr#2129. Thanks @MEO265 and @MichaelChirico!

@MichaelChirico
Copy link

thanks for actively culling lints with {lintr} and keeping your coffee quality top notch!

@jameslamb jameslamb merged commit 5e90255 into master Nov 8, 2023
41 checks passed
@jameslamb jameslamb deleted the r/unreachable-code branch November 8, 2023 19:22
@jameslamb jameslamb removed the blocking label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants