Ad
  • Custom User Avatar

    The if statement is not needed. You can just return the result of the comparison.

    Effectively what you are doing is:
    if condition {
    return true
    else {
    return false
    }

    This can be simplified to: return condition