Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They should probably replace that with 2 if statements to make the error path and the non-error path obvious:

    if err != nil {
        return nil, err
    }
    if match {
        return rule, nil
    }


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: