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

[Library/Homebrew/cli/named_args.rb] to_formulae_to_casks(): Reasssociate its rescue Block with the Correct Enclosing Scope #9431

Commits on Dec 5, 2020

  1. [Library/Homebrew/cli/named_args.rb] to_formulae_to_casks(): Reasso…

    …ciate its
    
    `rescue` block with the right enclosing scope.
    
         PR Homebrew#9398 accidentally removed some semantically significant indentation in
    this function, thus inadvertently kicking the `rescue` block inside out to func-
    tion scope, when it moved its code further up in the file.  This may well not
    confuse a Ruby interpreter, but it could trip human readers up.  Compensate and
    correct the overlooked offending oversight and potential refactoring mistake by
    restoring only that indentation, leaving the function in its new location.
    
    Refs Homebrew#9398.
    RandomDSdevel committed Dec 5, 2020
    Configuration menu
    Copy the full SHA
    c237223 View commit details
    Browse the repository at this point in the history