Refactor GetUid() method and add new tests for server storage
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-02-10 11:32:44 +01:00
parent 423ef5c4b1
commit df9c6b5d46
3 changed files with 65 additions and 1065 deletions

View File

@ -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 {