Change requester to GET by default

This commit is contained in:
Liam Newman
2019-11-25 18:05:18 -08:00
parent 1b55b5fa3c
commit 3296cef02d
47 changed files with 252 additions and 180 deletions

View File

@@ -9,8 +9,6 @@ import java.net.URL;
import java.util.Collection;
import java.util.Objects;
import static org.kohsuke.github.Previews.*;
/**
* A branch in a repository.
*
@@ -122,7 +120,7 @@ public class GHBranch {
* if disabling protection fails
*/
public void disableProtection() throws IOException {
new Requester(root).method("DELETE").to(protection_url);
root.retrieve().method("DELETE").to(protection_url);
}
/**