Optimize the judgment mode to remove redundant transformations (#9588)

Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
Fish-pro 2023-02-16 21:59:39 +08:00 committed by GitHub
parent 00086ab429
commit fbdbc24a42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View file

@ -76,11 +76,7 @@ func (c1 *Configuration) Equal(c2 *Configuration) bool {
}
}
if c1.BackendConfigChecksum != c2.BackendConfigChecksum {
return false
}
return true
return c1.BackendConfigChecksum == c2.BackendConfigChecksum
}
// Equal tests for equality between two Backend types