Refactor GetUid() method and add new tests for server storage
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
package meowlib
|
||||
|
||||
func (sc *ServerCard) GetUid() string {
|
||||
return sc.Login + ":" + sc.Password + "@" + sc.Url
|
||||
if len(sc.Login) > 0 || len(sc.Password) > 0 {
|
||||
return sc.Login + ":" + sc.Password + "@" + sc.Url
|
||||
}
|
||||
return sc.Url
|
||||
}
|
||||
|
||||
func (sc *ServerCard) IsSame(sc1 *ServerCard) bool {
|
||||
|
Reference in New Issue
Block a user