Skip to content

Commit

Permalink
improve config loading guards for generic lando 3 service part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Jan 18, 2025
1 parent 779c27b commit 66d3f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Improved config loading gaurds for generic Lando 3 service
* Improved config loading guards for generic Lando 3 service

## v3.24.0-beta.10 - [January 15, 2025](https://github.com/lando/core/releases/tag/v3.24.0-beta.10)

Expand Down
2 changes: 1 addition & 1 deletion builders/_lando.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ module.exports = {
// Handle custom config files
for (let [remote, local] of Object.entries(config)) {
// if we dont have entries we can work with then just go to the next iteration
if (!_.has(remoteFiles, remote) || typeof remote !== 'string') continue;
if (!_.has(remoteFiles, remote) && typeof remote !== 'string') continue;

// if this is special type then get it from remoteFile
remote = _.has(remoteFiles, remote) ? remoteFiles[remote] : path.resolve('/', remote);
Expand Down

0 comments on commit 66d3f9d

Please sign in to comment.