Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning in Currency.extra.cs #91

Closed
Skrypt opened this issue Nov 27, 2021 · 0 comments · Fixed by #92
Closed

Warning in Currency.extra.cs #91

Skrypt opened this issue Nov 27, 2021 · 0 comments · Fixed by #92

Comments

@Skrypt
Copy link
Contributor

Skrypt commented Nov 27, 2021

Le résultat de l'expression est toujours 'true', car une valeur de type 'Currency' n'est jamais égale à 'null' du type 'Currency?' [F:\Repositories\OrchardCore.Commerce\MoneyDataType\MoneyDataType.csproj]

return temp != null ? (providers ?? new List<ICurrencyProvider>()).SelectMany(p => p.Currencies).FirstOrDefault(c => c.CurrencyIsoCode == temp.CurrencyIsoCode) : null;

bleroy added a commit that referenced this issue Nov 27, 2021
Fix warning in Currency.extra.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant