Came across this while refactoring other code, it was isolated enough to pull into its own PR.
This method was designed to return many results, but that doesn't make a lot of sense when installing a single library (one library => one result). Also, the existing code paths only lever returned an enumerable of one item, which is wasteful but confirms that there isn't a need for an IEnumerable here.
Came across this while refactoring other code, it was isolated enough to pull into its own PR.
This method was designed to return many results, but that doesn't make a lot of sense when installing a single library (one library => one result). Also, the existing code paths only lever returned an enumerable of one item, which is wasteful but confirms that there isn't a need for an IEnumerable here.