mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-20 08:43:44 +00:00
Be lazier with imports in oclif actions
Change-type: patch
This commit is contained in:
@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
import { BalenaApplicationNotFound } from 'balena-errors';
|
||||
import type * as BalenaSdk from 'balena-sdk';
|
||||
import _ = require('lodash');
|
||||
|
||||
@ -391,6 +390,7 @@ export async function getOnlineTargetUuid(
|
||||
})),
|
||||
});
|
||||
} catch (err) {
|
||||
const { BalenaApplicationNotFound } = await import('balena-errors');
|
||||
if (!instanceOf(err, BalenaApplicationNotFound)) {
|
||||
throw err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user