Skip to content

Commit f640da8

Browse files
author
Abdelkarim Boujida
committed
Fix some lint issues
1 parent eb70bcb commit f640da8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

internal/provider/provider.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,17 +265,17 @@ func (c *ConnectionConfig) Dsn() string {
265265
func (c *ConnectionConfig) DsnKey() string {
266266
var h maphash.Hash
267267
h.SetSeed(seed)
268-
h.WriteString(fmt.Sprintf("DRIVERKEY:%s", c.DriverKey()))
269-
h.WriteString(fmt.Sprintf("DSN:%s", c.Dsn()))
268+
_, _ = h.WriteString(fmt.Sprintf("DRIVERKEY:%s", c.DriverKey()))
269+
_, _ = h.WriteString(fmt.Sprintf("DSN:%s", c.Dsn()))
270270
return strconv.FormatUint(h.Sum64(), 10)
271271
}
272272

273273
func (c *ConnectionConfig) DriverKey() string {
274274
var h maphash.Hash
275275
h.SetSeed(seed)
276-
h.WriteString(fmt.Sprintf("PRIVATEIP:%t", c.PrivateIP.ValueBool()))
277-
h.WriteString(fmt.Sprintf("PSC:%t", c.PSC.ValueBool()))
278-
h.WriteString(fmt.Sprintf("PROXY:%s", c.Proxy.ValueString()))
276+
_, _ = h.WriteString(fmt.Sprintf("PRIVATEIP:%t", c.PrivateIP.ValueBool()))
277+
_, _ = h.WriteString(fmt.Sprintf("PSC:%t", c.PSC.ValueBool()))
278+
_, _ = h.WriteString(fmt.Sprintf("PROXY:%s", c.Proxy.ValueString()))
279279

280280
return strconv.FormatUint(h.Sum64(), 10)
281281
}

0 commit comments

Comments
 (0)