mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Update to Arceliar/ironwood@743fe2f
This commit is contained in:
parent
657f7e0db3
commit
04be129878
3 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ func chuser(input string) error {
|
|||
if givenUser == "" {
|
||||
return fmt.Errorf("user is empty")
|
||||
}
|
||||
if strings.Index(input, ":") > -1 && givenGroup == "" {
|
||||
if strings.Contains(input, ":") && givenGroup == "" {
|
||||
return fmt.Errorf("group is empty")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue