Skip to content

Commit

Permalink
bug(bot): fix osDistro prefix matching (#1906)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon authored Aug 2, 2024
1 parent 222664f commit 449565c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ class CICommand {
});
const osDistros = [];
for (const file of files.data) {
for (const prefix of this.osDistroPathPrefixHints) {
for (const [prefix, osDistro] of Object.entries(this.osDistroPathPrefixHints)) {
if (file.filename.startsWith(prefix)) {
const osDistro = this.osDistroPathPrefixHints[prefix];
osDistros.push(osDistro);
}
}
Expand Down

0 comments on commit 449565c

Please sign in to comment.