Skip to content

Commit

Permalink
- jslint - Remove unnecessary shell-function shCurlExe().
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhu256 committed Jun 25, 2024
1 parent 22e343f commit 99e4510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- jslint - try to improve parser to be able to parse jquery.js without stopping.

# v2024.6.1-beta
- jslint - Remove unnecessary shell-function shCurlExe().
- coverage - Fix coverage-function v8CoverageReportCreate() throwing error EINVAL in latest nodejs-security-patch, when running win32-coverage with npm.cmd.

# v2024.3.26
Expand Down
12 changes: 1 addition & 11 deletions jslint_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -651,16 +651,6 @@ shCiPublishPypi() {(set -e
fi
)}

shCurlExe() {(set -e
# This function will print to stdout "curl.exe", if it exists, else "curl".
if [ -f c:/windows/system32/curl.exe ]
then
printf c:/windows/system32/curl.exe
return
fi
printf curl
)}

shDirHttplinkValidate() {(set -e
# This function will validate http-links embedded in .html and .md files.
# init $GITHUB_BRANCH0
Expand Down Expand Up @@ -1294,7 +1284,7 @@ shGithubWorkflowDispatch() {(set -e
BRANCH="$1"
shift
EXIT_CODE=0
"$(shCurlExe)" \
curl \
"https://api.github.com/repos/$REPO/actions/workflows/ci.yml/dispatches" \
-H "accept: application/vnd.github.v3+json" \
-H "authorization: Bearer $MY_GITHUB_TOKEN" \
Expand Down

0 comments on commit 99e4510

Please sign in to comment.