Skip to content

Commit a0014d3

Browse files
committed
add a lil comment
1 parent 8f11aed commit a0014d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/httpapi/name.go

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func NameValid(str string) error {
4646
if len(str) < 1 {
4747
return xerrors.New("must be >= 1 character")
4848
}
49+
// Avoid conflicts with routes like /templates/new and /groups/create.
4950
if str == "new" || str == "create" {
5051
return xerrors.Errorf("cannot use %q as a name", str)
5152
}

0 commit comments

Comments
 (0)