mirror of
https://github.com/github/codeql-action.git
synced 2026-11-08 22:19:50 +00:00
Remove unnecessary lstatSync call
This commit is contained in:
15
lib/entry-points.js
generated
15
lib/entry-points.js
generated
@@ -183450,21 +183450,8 @@ var XCODE_APP_FILENAME_PATTERN = new RegExp(
|
||||
);
|
||||
function xcodeVersion(logger2) {
|
||||
try {
|
||||
const stats = import_fs.default.lstatSync(XCODE_SELECT_LINK_PATH, {
|
||||
throwIfNoEntry: false
|
||||
});
|
||||
if (stats === void 0) {
|
||||
logger2.debug(`'${XCODE_SELECT_LINK_PATH}' does not exist.`);
|
||||
return void 0;
|
||||
}
|
||||
if (!stats.isSymbolicLink()) {
|
||||
logger2.debug(
|
||||
`${XCODE_SELECT_LINK_PATH} exists, but is not a symbolic link.`
|
||||
);
|
||||
return void 0;
|
||||
}
|
||||
const xcodePath = import_fs.default.readlinkSync(XCODE_SELECT_LINK_PATH);
|
||||
if (xcodePath === "") {
|
||||
if (xcodePath.trim() === "") {
|
||||
logger2.debug(
|
||||
`Resolving ${XCODE_SELECT_LINK_PATH} unexpectedly returned nothing.`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user