diff --git a/go/vt/vtgate/shard_conn.go b/go/vt/vtgate/shard_conn.go index f2ea4b2c73..b275b3375b 100644 --- a/go/vt/vtgate/shard_conn.go +++ b/go/vt/vtgate/shard_conn.go @@ -64,7 +64,7 @@ type ShardConnError struct { } func (e *ShardConnError) Error() string { - if len(e.ShardIdentifier) == 0 { + if e.ShardIdentifier == "" { return e.Err } return fmt.Sprintf("%v, shard, host: %s", e.Err, e.ShardIdentifier)