@@ -373,15 +373,15 @@ func memberHash(rawMember interface{}) int {
373
373
member := rawMember .(map [string ]interface {})
374
374
375
375
if v , ok := member ["member" ].(string ); ok {
376
- buf .WriteString (fmt .Sprintf ("%s-" , v ))
376
+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
377
377
}
378
378
if v , ok := member ["role" ].(string ); ok {
379
- buf .WriteString (fmt .Sprintf ("%s-" , v ))
379
+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
380
380
}
381
381
382
382
if condition , ok := member ["condition" ].(* schema.Set ); ok && condition .Len () > 0 && condition .List ()[0 ] != nil {
383
383
rawCondition := condition .List ()[0 ].(map [string ]interface {})
384
- buf .WriteString (conditionHash (rawCondition ))
384
+ _ , _ = buf .WriteString (conditionHash (rawCondition ))
385
385
}
386
386
387
387
return hashcode .String (buf .String ())
@@ -392,21 +392,21 @@ func conditionHash(rawCondition interface{}) string {
392
392
condition := rawCondition .(map [string ]interface {})
393
393
394
394
if v , ok := condition ["database" ].(string ); ok {
395
- buf .WriteString (fmt .Sprintf ("%s-" , v ))
395
+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
396
396
}
397
397
if v , ok := condition ["schema" ].(string ); ok {
398
- buf .WriteString (fmt .Sprintf ("%s-" , v ))
398
+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
399
399
}
400
400
if v , ok := condition ["tables" ].(* schema.Set ); ok {
401
401
for _ , t := range v .List () {
402
- buf .WriteString (fmt .Sprintf ("table.%s-" , t .(string )))
402
+ _ , _ = buf .WriteString (fmt .Sprintf ("table.%s-" , t .(string )))
403
403
}
404
404
}
405
405
if v , ok := condition ["row_limit" ].(int ); ok {
406
- buf .WriteString (fmt .Sprintf ("%d-" , v ))
406
+ _ , _ = buf .WriteString (fmt .Sprintf ("%d-" , v ))
407
407
}
408
408
if v , ok := condition ["expire_timestamp" ].(string ); ok {
409
- buf .WriteString (fmt .Sprintf ("%s-" , v ))
409
+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
410
410
}
411
411
412
412
return buf .String ()
0 commit comments