Fix "warning: possibly useless use of a variable in void context"#31
Merged
bf4 merged 1 commit intosimplecov-ruby:masterfrom Nov 13, 2014
cbandy:warning-useless-variable
Merged
Fix "warning: possibly useless use of a variable in void context"#31bf4 merged 1 commit intosimplecov-ruby:masterfrom cbandy:warning-useless-variable
bf4 merged 1 commit intosimplecov-ruby:masterfrom
cbandy:warning-useless-variable
Conversation
lib/simplecov-html.rb
Outdated
Collaborator
There was a problem hiding this comment.
Per @robertgrimm’s suggestion, this should include a comment explaining why this is necessary.
Contributor
Author
There was a problem hiding this comment.
Beyond the commit message?
The title_id variable is necessary and used by ERB via binding.
Collaborator
There was a problem hiding this comment.
@colszowka @sferik fine with me. Any objections or I'll merge it Nov 11 midday CDT
bf4
added a commit
that referenced
this pull request
Nov 13, 2014
Fix "warning: possibly useless use of a variable in void context"
|
Hey there! Is there a plan to cut a release, even just a patch release, in the near future? I'd love to get rid of this warning in my build output. |
Collaborator
|
@colszowka can you cut a release? |
jsonn
pushed a commit
to jsonn/pkgsrc
that referenced
this pull request
Mar 14, 2015
## Bugfixes 0.9.2, 2015-02-18 ([changes](simplecov-ruby/simplecov@v0.9.1...v0.9.2)) ==================== This is a minor bugfix release for simplecov-html, released as `0.9.0`. Due to the tight version constraint in the gemspec a new release of simplecov had to be shipped to allow using simplecov-html `~> 0.9.0`. * The browser back / forward button should now work again. See [#36](simplecov-ruby/simplecov-html#36) and [#35](simplecov-ruby/simplecov-html#35). Thanks @whatasunnyday and @justinsteele for submitting PRs to fix this. * Fix "warning: possibly useless use of a variable in void context" See [#31](simplecov-ruby/simplecov-html#31). Thanks @cbandy * Always use binary file format. See [#32](simplecov-ruby/simplecov-html#32). Thanks @andy128k * Avoid slow file output with JRuby/Windows. See [#16](simplecov-ruby/simplecov-html#16). Thanks @pschambacher Other than the release includes a bunch of mostly documentation improvements: * Update Rails path for Rails 4+. See [#336](simplecov-ruby/simplecov#336). Thanks @yazinsai * Encourage use of .simplecov to avoid lost files. See [#338](simplecov-ruby/simplecov#338). thanks @dankohn * Specified in the gemspec that simplecov needs ruby 1.8.7. See [#343](simplecov-ruby/simplecov#343). thanks @iainbeeston * Fix mispointed link in CHANGELOG.md. See [#353](simplecov-ruby/simplecov#353). Thanks @dleve123 * Improve command name docs. See [#356](simplecov-ruby/simplecov#356). Thanks @gtd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uses double assignment as suggested by @robertgrimm in #24.