mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Return GHEvent.UNKNOWN in GHEventInfo.getType() if unknown
This commit is contained in:
@@ -53,7 +53,7 @@ public class GHEventInfo extends GitHubInteractiveObject {
|
||||
if (e.name().replace("_", "").equalsIgnoreCase(t))
|
||||
return e;
|
||||
}
|
||||
return null; // unknown event type
|
||||
return GHEvent.UNKNOWN;
|
||||
}
|
||||
|
||||
GHEventInfo wrapUp(GitHub root) {
|
||||
|
||||
Reference in New Issue
Block a user