From 2cef835cd00a1e8deb5820a06ae056486ec1e26a Mon Sep 17 00:00:00 2001 From: Redth Date: Wed, 21 Feb 2018 15:45:10 -0500 Subject: [PATCH] Remove unnecessary context null check Application.Context should never be null, and if it is, we have much larger problems in our app. --- F50/Preferences/Preferences.android.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/F50/Preferences/Preferences.android.cs b/F50/Preferences/Preferences.android.cs index 431acef..050938e 100644 --- a/F50/Preferences/Preferences.android.cs +++ b/F50/Preferences/Preferences.android.cs @@ -115,8 +115,6 @@ namespace Xamarin.F50 ISharedPreferences GetSharedPreferences () { var context = Application.Context; - if (context == null) - return null; return string.IsNullOrWhiteSpace(SharedName) ? PreferenceManager.GetDefaultSharedPreferences(context) :