Simplified /cleaned some code parts

This commit is contained in:
hydrant
2018-10-16 11:03:06 +02:00
parent 5f81531522
commit 3ae1bb3e15
4 changed files with 3 additions and 48 deletions

View File

@@ -19,7 +19,6 @@ namespace reallife_gamemode.Server.Extensions
{
public static UserBankAccount GetUserBankAccount(this User user, DatabaseContext context = null)
{
using (DatabaseContext dbContext = new DatabaseContext())
if (context == null)
{
using (context = new DatabaseContext())