Skip to content

Commit

Permalink
Make constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mbax committed Oct 10, 2013
1 parent e93a789 commit b07b00f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/gravitydevelopment/updater/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class Updater {
private static final String QUERY = "/servermods/files?projectIds="; // Path to GET
private static final String HOST = "https://api.curseforge.com"; // Slugs will be appended to this to get to the project's RSS feed

private String[] noUpdateTag = { "-DEV", "-PRE", "-SNAPSHOT" }; // If the version number contains one of these, don't update.
private static final String[] NO_UPDATE_TAG = { "-DEV", "-PRE", "-SNAPSHOT" }; // If the version number contains one of these, don't update.
private static final int BYTE_SIZE = 1024; // Used for downloading files
private YamlConfiguration config; // Config file
private String updateFolder = YamlConfiguration.loadConfiguration(new File("bukkit.yml")).getString("settings.update-folder"); // The folder that downloads will be placed in
Expand Down Expand Up @@ -441,7 +441,7 @@ private Integer calVer(String s) throws NumberFormatException {
* Evaluate whether the version number is marked showing that it should not be updated by this program
*/
private boolean hasTag(String version) {
for (String string : noUpdateTag) {
for (String string : NO_UPDATE_TAG) {
if (version.contains(string)) {
return true;
}
Expand Down

0 comments on commit b07b00f

Please sign in to comment.