Merge pull request #3823 from mono/fix-btls-managed
[mono.git] / mcs / class / System / Mono.Btls / MonoBtlsContext.cs
index 2df24d9793ae3106b598d4bb34fce098724d5300..e4054a173c8d3e5c221b5bbb2f6a4995a52f2237 100644 (file)
@@ -154,12 +154,9 @@ namespace Mono.Btls
                        }
                }
 
-               Exception GetException (MonoBtlsSslError status)
+               static Exception GetException (MonoBtlsSslError status)
                {
                        var error = MonoBtlsError.GetError ();
-                       if (error == null)
-                               return new MonoBtlsException (status);
-
                        var text = MonoBtlsError.GetErrorString (error);
                        return new MonoBtlsException ("{0} {1}", status, text);
                }