mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
refactor
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user