Resharper cleanup and fixes and remove useless asp overhead

This commit is contained in:
runebaas 2018-05-15 01:18:26 +02:00
parent e0d6a97dca
commit acb2b25e09
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
44 changed files with 54 additions and 81 deletions

View file

@ -5,7 +5,6 @@ using System.Text;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.net.Lib;
using Geekbot.net.Lib.Converters;
using Geekbot.net.Lib.ErrorHandling;
using Geekbot.net.Lib.UserRepository;
@ -167,7 +166,10 @@ namespace Geekbot.net.Commands.Utils.Poll
};
results.Add(result);
}
catch {}
catch
{
// ignored
}
results.Sort((x, y) => y.VoteCount.CompareTo(x.VoteCount));
return results;