zrhoffman commented on a change in pull request #5078:
URL: https://github.com/apache/trafficcontrol/pull/5078#discussion_r497203519
##########
File path: .github/actions/build-ciab/build-ciab.js
##########
@@ -32,10 +32,7 @@ function moveRPMs() {
.filter(item => fs.lstatSync(item).isDirectory()) // get a list
of directories within dist
.flatMap(directory => fs.readdirSync(directory).map(item =>
path.join(directory, item))) // list files within those directories
.filter(item => /\.rpm$/.test(item)) // get a list of RPMs
- .map(rpm => {
- fs.renameSync(rpm, rpm.replace(new RegExp('.*/'), ''));
- return rpm;
- }); // move the RPMs to the dist folder
+ .map(rpm => fs.renameSync(rpm, rpm.replace(new RegExp('.*/'),
''))); // move the RPMs to the dist folder
Review comment:
It would not. Changed to using `path.basename()` in 0e1a70389a
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]