Skip to content

Commit 6bd7a73

Browse files
committed
explicitly ignore errors
1 parent 5e475a9 commit 6bd7a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/driver_options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ func WriteTimeoutOption(c *client.Conn, value string) error {
3838
func CompressOption(c *client.Conn, value string) error {
3939
switch value {
4040
case "zlib":
41-
c.SetCapability(mysql.CLIENT_COMPRESS)
41+
_ = c.SetCapability(mysql.CLIENT_COMPRESS)
4242
case "zstd":
43-
c.SetCapability(mysql.CLIENT_ZSTD_COMPRESSION_ALGORITHM)
43+
_ = c.SetCapability(mysql.CLIENT_ZSTD_COMPRESSION_ALGORITHM)
4444
case "uncompressed":
4545
c.UnsetCapability(mysql.CLIENT_COMPRESS)
4646
c.UnsetCapability(mysql.CLIENT_ZSTD_COMPRESSION_ALGORITHM)

0 commit comments

Comments
 (0)