Skip to content

Commit

Permalink
fix: faulty logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Oct 2, 2024
1 parent 0d075b0 commit 0c6146f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/imagery/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,13 @@ function getImageSamples(configuration) {

/**
* @param {ImageryConfiguration} configuration
* @returns {string[] | undefined}
* @returns {string[]?}
*/
function getImageLocations(configuration) {
const imageLocations = configuration?.imageLocation?.split(',');
let imageLocations = null;
if (configuration.imageLocation) {
imageLocations = configuration.imageLocation.split(',');

Check warning on line 184 in example/imagery/plugin.js

View check run for this annotation

Codecov / codecov/patch

example/imagery/plugin.js#L184

Added line #L184 was not covered by tests
}
return imageLocations;
}

Expand Down

0 comments on commit 0c6146f

Please sign in to comment.