mirror of https://github.com/v2ray/v2ray-core
refactor
parent
94e01672d7
commit
0ef9143ffd
|
@ -19,9 +19,9 @@ var (
|
|||
|
||||
type State int32
|
||||
|
||||
func (v State) Is(states ...State) bool {
|
||||
func (s State) Is(states ...State) bool {
|
||||
for _, state := range states {
|
||||
if v == state {
|
||||
if s == state {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue