File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ func chuser(input string) error {
1717 if givenUser == "" {
1818 return fmt .Errorf ("user is empty" )
1919 }
20- if strings .Index (input , ":" ) > - 1 && givenGroup == "" {
20+ if strings .Contains (input , ":" ) && givenGroup == "" {
2121 return fmt .Errorf ("group is empty" )
2222 }
2323
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/yggdrasil-network/yggdrasil-go
33go 1.21
44
55require (
6- github.com/Arceliar/ironwood v0.0.0-20241210120540-9deb08d9f8f9
6+ github.com/Arceliar/ironwood v0.0.0-20241213013129-743fe2fccbd3
77 github.com/Arceliar/phony v0.0.0-20220903101357-530938a4b13d
88 github.com/cheggaaa/pb/v3 v3.1.5
99 github.com/coder/websocket v1.8.12
Original file line number Diff line number Diff line change 1- github.com/Arceliar/ironwood v0.0.0-20241210120540-9deb08d9f8f9 h1:myI8fs7+Iw6g/ywvY9QNQOEzny51AklMz4sF0ErtTm8 =
2- github.com/Arceliar/ironwood v0.0.0-20241210120540-9deb08d9f8f9 /go.mod h1:SrrElc3FFMpYCODSr11jWbLFeOM8WsY+DbDY/l2AXF0 =
1+ github.com/Arceliar/ironwood v0.0.0-20241213013129-743fe2fccbd3 h1:d8N0z+udAnbU5PdjpLSNPTWlqeU/nnYsQ42B6+879aw =
2+ github.com/Arceliar/ironwood v0.0.0-20241213013129-743fe2fccbd3 /go.mod h1:SrrElc3FFMpYCODSr11jWbLFeOM8WsY+DbDY/l2AXF0 =
33github.com/Arceliar/phony v0.0.0-20220903101357-530938a4b13d h1:UK9fsWbWqwIQkMCz1CP+v5pGbsGoWAw6g4AyvMpm1EM =
44github.com/Arceliar/phony v0.0.0-20220903101357-530938a4b13d /go.mod h1:BCnxhRf47C/dy/e/D2pmB8NkB3dQVIrkD98b220rx5Q =
55github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow =
You can’t perform that action at this time.
0 commit comments