-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove duplicates from the library list #1632
Conversation
src/api/CompileTools.ts
Outdated
ileSetup.libraryList = ileSetup.libraryList | ||
.filter((item, pos, self) => { | ||
return self.indexOf(item) == pos; | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the sake of reusing the Tools at hand :)
ileSetup.libraryList = ileSetup.libraryList | |
.filter((item, pos, self) => { | |
return self.indexOf(item) == pos; | |
}) | |
ileSetup.libraryList = ileSetup.libraryList.filter(Tools.distinct); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I did not even know we had that. Fab!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just me nitpicking ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Let's merge!
Changes
When
.env
is used, or when therunCommand
API is used, it's possible for the user or code to pass in duplicate libraries, which the IBM i doesn't like too much. This is a simple change to remove duplicates from the end of the library list.Checklist
console.log
s I added