From 948ae0bddabe170a3d6fbd50cef739d709fe2008 Mon Sep 17 00:00:00 2001 From: Tatsuro Shibamura Date: Sat, 10 Apr 2021 23:20:16 +0900 Subject: [PATCH] Remove trace code (#76) --- WinQuickLook/Extensions/QuickLookHandlerExtensions.cs | 11 +++-------- nuget.config | 8 ++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 nuget.config diff --git a/WinQuickLook/Extensions/QuickLookHandlerExtensions.cs b/WinQuickLook/Extensions/QuickLookHandlerExtensions.cs index 561fbeed..1e43f7e2 100644 --- a/WinQuickLook/Extensions/QuickLookHandlerExtensions.cs +++ b/WinQuickLook/Extensions/QuickLookHandlerExtensions.cs @@ -1,9 +1,6 @@ -using System; -using System.IO; +using System.IO; using System.Windows; -using Microsoft.AppCenter.Crashes; - using WinQuickLook.Handlers; namespace WinQuickLook.Extensions @@ -18,12 +15,10 @@ public static (FrameworkElement, Size, string) GetViewerWithHandleError(this IQu { return (handler ?? _genericFileHandler).GetViewer(fileInfo); } - catch (Exception ex) + catch { - Crashes.TrackError(ex); + return _genericFileHandler.GetViewer(fileInfo); } - - return _genericFileHandler.GetViewer(fileInfo); } } } diff --git a/nuget.config b/nuget.config new file mode 100644 index 00000000..6ce97590 --- /dev/null +++ b/nuget.config @@ -0,0 +1,8 @@ + + + + + + + +