Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix V3114 warnings from PVS-Studio Static Analyzer #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MIMWebClient/Core/Events/Communicate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static void NewbieChannel(string message, Player player)

var discordBot = new HomeController();
discordBot.PostToDiscord(discordToSay);

discordBot.Dispose();

}

Expand Down Expand Up @@ -289,7 +289,7 @@ public static void OocChannel(string message, Player player)

var discordBot = new HomeController();
discordBot.PostToDiscord(discordToSay);

discordBot.Dispose();
}

}
Expand Down
1 change: 1 addition & 0 deletions MIMWebClient/Core/Player/Experience.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public void GainLevel(PlayerSetup.Player player)

var discordBot = new HomeController();
discordBot.PostToDiscord(discordToSay);
discordBot.Dispose();
}
}

Expand Down
6 changes: 3 additions & 3 deletions MIMWebClient/Hubs/MIMHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ public void charSetup(string id, string name, string email, string password, str
var discordToSay = "A new character called, " + PlayerData.Name + " has entered the realm.";

var discordBot = new HomeController();
discordBot.PostToDiscord(discordToSay);

discordBot.PostToDiscord(discordToSay);
discordBot.Dispose();
}

public void Login(string id, string name, string password)
Expand Down Expand Up @@ -446,7 +446,7 @@ public void Login(string id, string name, string password)

var discordBot = new HomeController();
discordBot.PostToDiscord(discordToSay);

discordBot.Dispose();


}
Expand Down