Skip to content

Commit

Permalink
chore: add additional checks for gh_token
Browse files Browse the repository at this point in the history
  • Loading branch information
BrycensRanch committed Mar 10, 2023
1 parent 2f769eb commit 9bd1a7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/me/romvnly/TownyPlus/util/WebUtils.java
Expand Up @@ -45,7 +45,8 @@ public class WebUtils {
public static String getToken() {
if (Config.githubPAT != null && !Config.githubPAT.isEmpty() && !Config.githubPAT.equalsIgnoreCase("none")) {
return Config.githubPAT;
} else if (System.getenv("GITHUB_TOKEN") != null && !System.getenv("GITHUB_TOKEN").isEmpty() && !System.getenv("GITHUB_TOKEN").equalsIgnoreCase("none")) {
}
else if (System.getenv("GITHUB_TOKEN") != null && !System.getenv("GITHUB_TOKEN").isEmpty() && !System.getenv("GITHUB_TOKEN").equalsIgnoreCase("none")) {
return System.getenv("GITHUB_TOKEN");
} else {
return null;
Expand Down

0 comments on commit 9bd1a7e

Please sign in to comment.