Remove "frozen_string_literal: true" directive#21215
Closed
bcoles wants to merge 1 commit intorapid7:masterfrom
Closed
Remove "frozen_string_literal: true" directive#21215bcoles wants to merge 1 commit intorapid7:masterfrom
bcoles wants to merge 1 commit intorapid7:masterfrom
Conversation
Contributor
|
If it's only the - self.name.strip! if self.name.present?
# The parse succeeds only when a name is found
self.name.present?
end
# Sets the name of the author and updates the email if it's a known author.
# @param name [String] the name to set
def name=(name)
+ name = name.strip if name
if KNOWN.has_key?(name)
self.email = KNOWN[name]
end
@name = name
endLong-term frozen string literals will be the path of least resistance for Ruby (slightly older article at this point):
|
Contributor
Author
That seems like a reasonable approach. |
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.
frozen_string_literal: truebreaks modules where the author has an associated email address in the mailmap.See: https://github.com/rapid7/metasploit-framework/actions/runs/23700493046/job/69043237173