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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-package] remove unused internal variables #5991

Merged
merged 2 commits into from Jul 21, 2023
Merged

Conversation

jameslamb
Copy link
Collaborator

Removes some unused internal variables in the R package code.

The project's {lintr} checks and R CMD check don't catch these, but PyCharm did 馃榿

@@ -1341,7 +1341,7 @@ test_that("Booster's print, show, and summary work correctly", {
.has_expected_content_for_fitted_model(log_txt)

# summary()
log_text <- capture.output({
log_txt <- capture.output({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This one was actually a bug! The assertions below this check a variable named log_txt, which is the output of the previous command. With this change, that assertion actually checks the result of this call.

@jameslamb jameslamb merged commit 8967deb into master Jul 21, 2023
41 checks passed
@jameslamb jameslamb deleted the r/unused-variables branch July 21, 2023 04:55
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants