Skip to content

Commit

Permalink
fix logic issue
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Winther <[email protected]>
  • Loading branch information
jippi committed Feb 20, 2019
1 parent 243d553 commit c7a6199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/rds/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (r *RDS) identicalService(a, b *config.Service, logger *log.Entry) bool {
return false
}

if !r.difference(a.ServiceTags, b.ServiceTags) {
if r.isDifferent(a.ServiceTags, b.ServiceTags) {
logger.Infof("ServiceTags are not identical (%+v vs %+v)", a.ServiceTags, b.ServiceTags)
return false
}
Expand Down Expand Up @@ -300,7 +300,7 @@ func (r *RDS) getDifference(slice1, slice2 []string) []string {
return diff
}

func (r *RDS) difference(slice1, slice2 []string) bool {
func (r *RDS) isDifferent(slice1, slice2 []string) bool {
if len(r.getDifference(slice1, slice2)) > 0 {
return true
}
Expand Down

0 comments on commit c7a6199

Please sign in to comment.