Commit 88c33a22 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

More consistent early validation of tournament duration in Go runtime.

parent c2435c6c
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -2312,8 +2312,8 @@ func (n *RuntimeGoNakamaModule) TournamentCreate(ctx context.Context, id string,
	if endTime != 0 && endTime < startTime {
		return errors.New("endTime must be >= startTime")
	}
	if duration < 0 {
		return errors.New("duration must be >= 0")
	if duration <= 0 {
		return errors.New("duration must be > 0")
	}
	if maxSize < 0 {
		return errors.New("maxSize must be >= 0")
+7 −7

File changed.

Contains only whitespace changes.