4

guard let param = param, otherParam == .someValidValue else { return }

Beautiful one-liner that validates your function's parameters without having to incur in another indentation level.

Comments
Add Comment