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

Use optional chaining for more method calls #156938

Merged
merged 3 commits into from
Aug 2, 2022
Merged

Commits on Aug 2, 2022

  1. Use optional chaining for more method calls

    This rewrites code such as:
    
    ```ts
    if (thing) {
        thing.method();
    }
    ```
    
    To the more concise:
    
    ```ts
    thing?.method();
    ```
    
    This was done using a simple find replace. I tried to keep the change pretty conservative so it only touches simple cases like above
    mjbvz committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    241bfb8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11bde0f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b0fae8 View commit details
    Browse the repository at this point in the history