Parcourir la source

Merge pull request #982 from yujinqiu/consistent_code

consistent  ServerSpec  variable name
DarienRaymond il y a 7 ans
Parent
commit
30e99f76cb
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      common/protocol/server_spec.go

+ 4 - 4
common/protocol/server_spec.go

@@ -110,10 +110,10 @@ func (s *ServerSpec) PickUser() *User {
 	}
 }
 
-func (v *ServerSpec) IsValid() bool {
-	return v.valid.IsValid()
+func (s *ServerSpec) IsValid() bool {
+	return s.valid.IsValid()
 }
 
-func (v *ServerSpec) Invalidate() {
-	v.valid.Invalidate()
+func (s *ServerSpec) Invalidate() {
+	s.valid.Invalidate()
 }