We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2916fee commit fb81fa2Copy full SHA for fb81fa2
src/MyTested.AspNetCore.Mvc.Licensing/LicenseValidator.cs
@@ -18,7 +18,7 @@ internal static class LicenseValidator
18
19
public static bool Validate(IEnumerable<string> licenses, DateTime releaseDate, string projectNamespace)
20
{
21
- if (licenses == null)
+ if (licenses == null || !licenses.Any())
22
23
throw new InvalidLicenseException("No license provided");
24
}
0 commit comments