add some go-critic suggestions

This commit is contained in:
sentriz
2020-05-07 04:31:47 +01:00
parent 803a5babff
commit c65606ba1f
7 changed files with 22 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
// Package db provides database helpers and models
//nolint:lll
//nolint:lll // struct tags get very long and can't be split
package db
// see this db fiddle to mess around with the schema
@@ -15,7 +15,7 @@ import (
)
func splitInt(in, sep string) []int {
if len(in) == 0 {
if in == "" {
return []int{}
}
parts := strings.Split(in, sep)