mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-01 15:50:48 +00:00
Clean up request method calls
This commit is contained in:
@@ -176,13 +176,7 @@ public class GHProject extends GHObject {
|
||||
}
|
||||
|
||||
private void edit(String key, Object value) throws IOException {
|
||||
root.retrieve()
|
||||
.method("POST")
|
||||
.withPreview(INERTIA)
|
||||
.with(key, value)
|
||||
.method("PATCH")
|
||||
.withUrlPath(getApiRoute())
|
||||
.to();
|
||||
root.retrieve().method("PATCH").withPreview(INERTIA).with(key, value).withUrlPath(getApiRoute()).to();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -276,7 +270,7 @@ public class GHProject extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void delete() throws IOException {
|
||||
root.retrieve().method("POST").withPreview(INERTIA).method("DELETE").withUrlPath(getApiRoute()).to();
|
||||
root.retrieve().withPreview(INERTIA).method("DELETE").withUrlPath(getApiRoute()).to();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user