Skip to content

Commit 46662ad

Browse files
committed
lint
1 parent 7ef5c5a commit 46662ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sequel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func NewDB(db *sql.DB, driverName string, opts ...Option) (*DB, error) {
153153
// It also connects and pings the DB to ensure connectivity.
154154
func createReadReplicaSet(driverName string, dsns []string, maxConns int) (*ReadReplicaSet, error) {
155155
if len(dsns) == 0 {
156-
return nil, nil
156+
return nil, nil //nolint:nilnil // if there are no dsns, then this should not create anything
157157
}
158158

159159
var rss ReadReplicaSet

0 commit comments

Comments
 (0)