@@ -373,15 +373,15 @@ func memberHash(rawMember interface{}) int {
373373 member := rawMember .(map [string ]interface {})
374374
375375 if v , ok := member ["member" ].(string ); ok {
376- buf .WriteString (fmt .Sprintf ("%s-" , v ))
376+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
377377 }
378378 if v , ok := member ["role" ].(string ); ok {
379- buf .WriteString (fmt .Sprintf ("%s-" , v ))
379+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
380380 }
381381
382382 if condition , ok := member ["condition" ].(* schema.Set ); ok && condition .Len () > 0 && condition .List ()[0 ] != nil {
383383 rawCondition := condition .List ()[0 ].(map [string ]interface {})
384- buf .WriteString (conditionHash (rawCondition ))
384+ _ , _ = buf .WriteString (conditionHash (rawCondition ))
385385 }
386386
387387 return hashcode .String (buf .String ())
@@ -392,21 +392,21 @@ func conditionHash(rawCondition interface{}) string {
392392 condition := rawCondition .(map [string ]interface {})
393393
394394 if v , ok := condition ["database" ].(string ); ok {
395- buf .WriteString (fmt .Sprintf ("%s-" , v ))
395+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
396396 }
397397 if v , ok := condition ["schema" ].(string ); ok {
398- buf .WriteString (fmt .Sprintf ("%s-" , v ))
398+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
399399 }
400400 if v , ok := condition ["tables" ].(* schema.Set ); ok {
401401 for _ , t := range v .List () {
402- buf .WriteString (fmt .Sprintf ("table.%s-" , t .(string )))
402+ _ , _ = buf .WriteString (fmt .Sprintf ("table.%s-" , t .(string )))
403403 }
404404 }
405405 if v , ok := condition ["row_limit" ].(int ); ok {
406- buf .WriteString (fmt .Sprintf ("%d-" , v ))
406+ _ , _ = buf .WriteString (fmt .Sprintf ("%d-" , v ))
407407 }
408408 if v , ok := condition ["expire_timestamp" ].(string ); ok {
409- buf .WriteString (fmt .Sprintf ("%s-" , v ))
409+ _ , _ = buf .WriteString (fmt .Sprintf ("%s-" , v ))
410410 }
411411
412412 return buf .String ()
0 commit comments