Fix lint error

This commit is contained in:
Alessio 2022-05-07 14:38:21 -07:00
parent 36e537b1cd
commit cb3fc469b2

View File

@ -245,7 +245,7 @@ func (p Profile) IsFollowing(user scraper.User) bool {
var ret bool
err := row.Scan(&ret)
if err != nil {
if err == sql.ErrNoRows {
if errors.Is(err, sql.ErrNoRows) {
return false
}
panic(err) // A real error