From db42b6a3a5361ad834b9e15010b3b5bdc3080441 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 23 Dec 2017 23:40:41 -0500 Subject: [PATCH] null coalesce --- src/iOS/Services/DeviceActionService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iOS/Services/DeviceActionService.cs b/src/iOS/Services/DeviceActionService.cs index f94c89ae2..e6f5855d2 100644 --- a/src/iOS/Services/DeviceActionService.cs +++ b/src/iOS/Services/DeviceActionService.cs @@ -33,7 +33,7 @@ namespace Bit.iOS.Services public void Toast(string text, bool longDuration = false) { - if(_toast != null && !_toast.Dismissed) + if(!_toast?.Dismissed ?? false) { _toast.Dismiss(false); }