mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
use ?. and ?? instead of if == null
This commit is contained in:
parent
272f411f81
commit
787e569604
1 changed files with 1 additions and 5 deletions
|
|
@ -48,11 +48,7 @@ namespace Flow.Launcher.Infrastructure
|
|||
|
||||
query = query.Trim();
|
||||
|
||||
if (_alphabet != null)
|
||||
{
|
||||
query = _alphabet.Translate(query);
|
||||
stringToCompare = _alphabet.Translate(stringToCompare);
|
||||
}
|
||||
stringToCompare = _alphabet?.Translate(stringToCompare) ?? stringToCompare;
|
||||
|
||||
// This also can be done by spliting the query
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue