mirror of https://github.com/dirtbags/moth.git
Stop accepting empty team ID in devel mode
This commit is contained in:
parent
d87be0bfcb
commit
4ce0dcf11a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue