GHPullRequest.getLabels should not go to the GHIssue API endpoint

This commit is contained in:
Jesse Glick
2020-10-15 13:25:20 -04:00
parent f1ca0b5417
commit 8267050f06
2 changed files with 1 additions and 23 deletions

View File

@@ -158,10 +158,8 @@ public class GHIssue extends GHObject implements Reactable {
* Gets labels.
*
* @return the labels
* @throws IOException
* the io exception
*/
public Collection<GHLabel> getLabels() throws IOException {
public Collection<GHLabel> getLabels() {
if (labels == null) {
return Collections.emptyList();
}