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

utils/bottles: fix typechecking error #15381

Merged
merged 1 commit into from May 8, 2023

Conversation

@carlocab carlocab added the critical Critical change which should be shipped as soon as possible. label May 8, 2023
@carlocab carlocab enabled auto-merge May 8, 2023 13:12
Comment on lines 13 to +14
def tag(symbol = nil)
return Tag.from_symbol(symbol) if symbol.present?
return Tag.from_symbol(symbol.to_sym) if symbol.present?
Copy link
Member

@Bo98 Bo98 May 8, 2023

Choose a reason for hiding this comment

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

IMO this should be fixed a level higher. The parameter is literally called "symbol" so should be a symbol.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought that too (in part because I thought that might be able to fix it in one place instead of two), but I can't follow the call stack from the Sorbet error message. Happy to take a suggestion or replacement PR with a nicer fix.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, nvm, I got it.

Copy link
Member Author

Choose a reason for hiding this comment

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

This comment was marked as duplicate.

@carlocab carlocab merged commit 7d02626 into Homebrew:master May 8, 2023
25 checks passed
@carlocab carlocab deleted the fix-sorbet-fetch branch May 8, 2023 13:20
carlocab added a commit to carlocab/brew that referenced this pull request May 8, 2023
This is a better replacement of Homebrew#15381.
@carlocab carlocab mentioned this pull request May 8, 2023
7 tasks
carlocab added a commit to carlocab/brew that referenced this pull request May 8, 2023
This is a better replacement of Homebrew#15381.
carlocab added a commit to carlocab/brew that referenced this pull request May 8, 2023
This is a better replacement of Homebrew#15381.
carlocab added a commit to carlocab/brew that referenced this pull request May 8, 2023
This is a better replacement of Homebrew#15381.
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants