Use fmt.Errorf to make Golint happy

This commit is contained in:
bep 2015-04-21 21:13:28 +02:00
parent be01f8430e
commit be8e6d4f1f

View file

@ -286,7 +286,7 @@ func toPages(seq interface{}) (Pages, error) {
case PageGroup: case PageGroup:
return (seq.(PageGroup)).Pages, nil return (seq.(PageGroup)).Pages, nil
default: default:
return nil, errors.New(fmt.Sprintf("unsupported type in paginate, got %T", seq)) return nil, fmt.Errorf("unsupported type in paginate, got %T", seq)
} }
} }