mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-15 08:59:07 -04:00
remove unnecessary equals()
This commit is contained in:
@@ -20,13 +20,13 @@ type AddressSubject struct {
|
||||
}
|
||||
|
||||
func (subject *AddressSubject) NotEquals(another v2net.Address) {
|
||||
if subject.value.Equals(another) {
|
||||
if subject.value == another {
|
||||
subject.Fail("not equals to", another.String())
|
||||
}
|
||||
}
|
||||
|
||||
func (subject *AddressSubject) Equals(another v2net.Address) {
|
||||
if !subject.value.Equals(another) {
|
||||
if subject.value != another {
|
||||
subject.Fail("equals to", another.String())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user