balena-io / open-balena-api

The core API of openBalena
https://balena.io/open
GNU Affero General Public License v3.0
58 stars 29 forks source link

Use `assertExists` in place of `expect(..).to.not.be.undefined` #1687

Closed Page- closed 1 month ago

Page- commented 1 month ago

This allows us to remove assertions/optional chaining as it makes typescript aware that we've proven it's not nullish

Change-type: patch