small code cleanups

This commit is contained in:
RaidMax
2019-07-19 14:54:39 -05:00
parent 38f1169061
commit 50ba71c6fb
8 changed files with 44 additions and 45 deletions

View File

@ -61,8 +61,7 @@ namespace SharedLibraryCore.Commands
if (Args[0][0] == '@') // user specifying target by database ID
{
int dbID = -1;
int.TryParse(Args[0].Substring(1, Args[0].Length - 1), out dbID);
int.TryParse(Args[0].Substring(1, Args[0].Length - 1), out int dbID);
var found = await Manager.GetClientService().Get(dbID);
if (found != null)