Revert "Code analysis recommended this"
This reverts commit 1f8dd72606.
			
			
This commit is contained in:
		@@ -14,7 +14,7 @@ using System.Timers;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace NadekoBot
 | 
					namespace NadekoBot
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public class NadekoStats : IDisposable
 | 
					    public class NadekoStats
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        public static NadekoStats Instance { get; } = new NadekoStats();
 | 
					        public static NadekoStats Instance { get; } = new NadekoStats();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -231,20 +231,5 @@ namespace NadekoBot
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }).ConfigureAwait(false);
 | 
					            }).ConfigureAwait(false);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        public void Dispose()
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            Dispose(true);
 | 
					 | 
				
			||||||
            GC.SuppressFinalize(this);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        private void Dispose(bool disposing)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            if (disposing)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                carbonClient.Dispose();
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -49,11 +49,11 @@ namespace NadekoBot.Modules.Searches.Commands
 | 
				
			|||||||
                string result = parser.Parse(expression).ToString();
 | 
					                string result = parser.Parse(expression).ToString();
 | 
				
			||||||
                return result;
 | 
					                return result;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch (OverflowException)
 | 
					            catch (OverflowException e)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                return $"Overflow error on {expression}";
 | 
					                return $"Overflow error on {expression}";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch (FormatException)
 | 
					            catch (FormatException e)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                return $"\"{expression}\" was not formatted correctly";
 | 
					                return $"\"{expression}\" was not formatted correctly";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user