Lint code

This commit is contained in:
Manuel de Brito Fontes 2017-07-26 23:07:59 -04:00
parent a56dd7cc38
commit 681ca36b1c
10 changed files with 21 additions and 2 deletions

View file

@ -47,6 +47,7 @@ type RateLimit struct {
RPS Zone `json:"rps"`
}
// Equal tests for equality between two RateLimit types
func (rt1 *RateLimit) Equal(rt2 *RateLimit) bool {
if rt1 == rt2 {
return true
@ -74,6 +75,7 @@ type Zone struct {
SharedSize int `json:"sharedSize"`
}
// Equal tests for equality between two Zone types
func (z1 *Zone) Equal(z2 *Zone) bool {
if z1 == z2 {
return true