mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Use an undefined check rather than hasOwnProperty.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user