Use an undefined check rather than hasOwnProperty.
This commit is contained in:
parent
1220ae5bfd
commit
1f7bae7ab8
3 changed files with 3 additions and 6 deletions
|
|
@ -32,10 +32,7 @@ export const getApiClient = function (
|
|||
octokit.hook.after("request", (response: OctokitResponse<any>, _) => {
|
||||
if (
|
||||
!hasBeenWarnedAboutVersion &&
|
||||
Object.prototype.hasOwnProperty.call(
|
||||
response.headers,
|
||||
GITHUB_ENTERPRISE_VERSION_HEADER
|
||||
)
|
||||
response.headers[GITHUB_ENTERPRISE_VERSION_HEADER] !== undefined
|
||||
) {
|
||||
const installedVersion = response.headers[
|
||||
GITHUB_ENTERPRISE_VERSION_HEADER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue