Fix TypeError when cheapest AirPricingSolution is not the first in the list #680
Quality Gate failed
Failed conditions
C Reliability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
Check failure on line 1374 in test/Air/AirParser.test.js
sonarqubecloud / SonarCloud Code Analysis
Refactor this code to not nest functions more than 4 levels deep.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhalyu9JS2QyFtjpI-&open=AZzhalyu9JS2QyFtjpI-&pullRequest=680
Check warning on line 941 in src/Services/Air/AirParser.js
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhal6q9JS2QyFtjpJD&open=AZzhal6q9JS2QyFtjpJD&pullRequest=680
Check warning on line 205 in src/Services/Air/AirParser.js
sonarqubecloud / SonarCloud Code Analysis
Add an initial value to this "reduce()" call.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhal6q9JS2QyFtjpI_&open=AZzhal6q9JS2QyFtjpI_&pullRequest=680
Check warning on line 832 in src/Services/Air/AirParser.js
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhal6q9JS2QyFtjpJC&open=AZzhal6q9JS2QyFtjpJC&pullRequest=680
Check warning on line 206 in src/Services/Air/AirParser.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `Number.parseFloat` over `parseFloat`.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhal6q9JS2QyFtjpJA&open=AZzhal6q9JS2QyFtjpJA&pullRequest=680
Check warning on line 206 in src/Services/Air/AirParser.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `Number.parseFloat` over `parseFloat`.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhal6q9JS2QyFtjpJB&open=AZzhal6q9JS2QyFtjpJB&pullRequest=680
Check warning on line 1201 in test/Air/AirParser.test.js
sonarqubecloud / SonarCloud Code Analysis
Use `.includes()`, rather than `.indexOf()`, when checking for existence.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhalyu9JS2QyFtjpI8&open=AZzhalyu9JS2QyFtjpI8&pullRequest=680
Check warning on line 1199 in test/Air/AirParser.test.js
sonarqubecloud / SonarCloud Code Analysis
Use `.includes()`, rather than `.indexOf()`, when checking for existence.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhalyu9JS2QyFtjpI7&open=AZzhalyu9JS2QyFtjpI7&pullRequest=680
Check failure on line 1358 in test/Air/AirParser.test.js
sonarqubecloud / SonarCloud Code Analysis
Refactor this code to not nest functions more than 4 levels deep.
See more on https://sonarcloud.io/project/issues?id=Travelport-Ukraine_uapi-json&issues=AZzhalyu9JS2QyFtjpI9&open=AZzhalyu9JS2QyFtjpI9&pullRequest=680