mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Warning if not using 'is not null'
This commit is contained in:
@@ -40,7 +40,7 @@ namespace BTCPayServer
|
||||
// but we want searchTerm to be null only if the user is browsing the page via some link
|
||||
// NOT if the user entered some empty search
|
||||
var searchTerm = model.SearchTerm;
|
||||
searchTerm = searchTerm is string ? searchTerm :
|
||||
searchTerm = searchTerm is not null ? searchTerm :
|
||||
ctrl.Request.Query.ContainsKey(nameof(searchTerm)) ? string.Empty :
|
||||
null;
|
||||
if (searchTerm is null)
|
||||
|
||||
Reference in New Issue
Block a user