Stop accepting empty team ID in devel mode

This commit is contained in:
Neale Pickett 2023-09-14 14:47:20 -06:00
parent d87be0bfcb
commit 4ce0dcf11a
1 changed files with 3 additions and 0 deletions

View File

@ -522,6 +522,9 @@ func (ds *DevelState) TeamName(teamID string) (string, error) {
if name, err := ds.StateProvider.TeamName(teamID); err == nil {
return name, nil
}
if teamID == "" {
return "", fmt.Errorf("Empty team ID")
}
return fmt.Sprintf("«devel:%s»", teamID), nil
}