Skip to content

Commit c33ba90

Browse files
committed
Return an error of no data was found
1 parent 76c28c1 commit c33ba90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

usecases/internal/loadcontrol.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ func LoadControlLimits(
109109
result = append(result, newLimit)
110110
}
111111

112+
if len(result) == 0 {
113+
return nil, api.ErrDataNotAvailable
114+
}
115+
112116
return result, nil
113117
}
114118

0 commit comments

Comments
 (0)