Renamed a variable in WebManager to make it less confusing

This commit is contained in:
Florian CUNY 2020-05-19 17:56:10 +02:00
parent 4209afaf20
commit b9915dba98

View File

@ -113,18 +113,18 @@ public class WebManager {
}
for (String repository : repositories) {
GitHubRepository addonRepo;
GitHubRepository repo;
try {
addonRepo = new GitHubRepository(gh, repository);
repo = new GitHubRepository(gh, repository);
} catch (Exception e) {
if (plugin.getSettings().isLogGithubDownloadData()) {
plugin.logError("An unhandled exception occurred when gathering contributors data from the '" + repository + "' repository...");
plugin.logStacktrace(e);
}
addonRepo = null;
repo = null;
}
if (addonRepo != null) {
gatherContributors(addonRepo);
if (repo != null) {
gatherContributors(repo);
}
}