Fixes typo
This commit is contained in:
@@ -28,7 +28,7 @@ public abstract class MixinVersionCommand {
|
|||||||
@Overwrite
|
@Overwrite
|
||||||
private static int getFromRepo(String repo, String hash) {
|
private static int getFromRepo(String repo, String hash) {
|
||||||
try {
|
try {
|
||||||
HttpURLConnection connection = (HttpURLConnection) new URL("https://api.github.com/repos/" + repo + "/compare/ver/1.12.2/..." + hash).openConnection();
|
HttpURLConnection connection = (HttpURLConnection) new URL("https://api.github.com/repos/" + repo + "/compare/ver/1.12.2..." + hash).openConnection();
|
||||||
connection.connect();
|
connection.connect();
|
||||||
if (connection.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) return -2; // Unknown commit
|
if (connection.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) return -2; // Unknown commit
|
||||||
try (
|
try (
|
||||||
|
|||||||
Reference in New Issue
Block a user