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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes in Optional Collection extensions. 馃殌 #1110

Merged

Commits on May 19, 2023

  1. Updated the isNilOrEmpty Bool computed var.

    - Instead of checking for nil using guard statements we are using self and some basic conditions
    - This optimises the performance significantly considering that collection size can be bigger and checking using guard can be expensive.
    - Changes in `OptionalExtensions.swift`
    Mayank committed May 19, 2023
    Configuration menu
    Copy the full SHA
    a726b09 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2023

  1. Updated the nonEmpty Bool computed var.

    - Instead of checking for nil and empty using guard statements we are using self and some basic conditions
    
    - This optimises the performance significantly considering that collection size can be bigger and checking using guard can be expensive.
    
    - Changes in `OptionalExtensions.swift`
    Mayank committed May 20, 2023
    Configuration menu
    Copy the full SHA
    2f77308 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2023

  1. Removed the force unwrapping in isNilOrEmpty property.

    - Instead of force unwrapping, a default value is provided in the implementation of `isNilOrEmpty` property.
    Mayank committed May 21, 2023
    Configuration menu
    Copy the full SHA
    7e23137 View commit details
    Browse the repository at this point in the history
  2. Updated the isNilOrEmpty implementation

    Mayank committed May 21, 2023
    Configuration menu
    Copy the full SHA
    c4b2431 View commit details
    Browse the repository at this point in the history