Skip to content

Commit

Permalink
removed code failing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mahabaleshwars committed Mar 14, 2024
1 parent ae77984 commit 0b8af76
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/cleanup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88355,9 +88355,8 @@ exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
function getVersionFromFileContent(content, distributionName, versionFile) {
var _a, _b, _c, _d, _e;
let javaVersionRegExp;
const path = __nccwpck_require__(1017);
function getFileName(versionFile) {
return path.basename(versionFile);
return path_1.default.basename(versionFile);
}
const versionFileName = getFileName(versionFile);
if (versionFileName == '.tool-versions') {
Expand Down
3 changes: 1 addition & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125729,9 +125729,8 @@ exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
function getVersionFromFileContent(content, distributionName, versionFile) {
var _a, _b, _c, _d, _e;
let javaVersionRegExp;
const path = __nccwpck_require__(71017);
function getFileName(versionFile) {
return path.basename(versionFile);
return path_1.default.basename(versionFile);
}
const versionFileName = getFileName(versionFile);
if (versionFileName == '.tool-versions') {
Expand Down
1 change: 0 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export function getVersionFromFileContent(
versionFile: string
): string | null {
let javaVersionRegExp: RegExp;
const path = require('path');

function getFileName(versionFile: string) {
return path.basename(versionFile);
Expand Down

0 comments on commit 0b8af76

Please sign in to comment.