Skip to content

Commit da7f8eb

Browse files
committed
address comment
1 parent 812ca6c commit da7f8eb

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

pkgs/native_assets_cli/lib/src/config.dart

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -621,16 +621,9 @@ final class HookConfig {
621621
/// separately for different asset types.
622622
///
623623
/// This means that hooks should be written in a way that they are a no-op if
624-
/// they are invoked for an asset type that is not emitted by the hook:
625-
///
626-
/// ```dart
627-
/// if (input.config.buildAsstTypes.contains('some_asset_type')) {
628-
/// // Emit some asset.
629-
/// }
630-
/// ```
631-
///
632-
/// Most asset extensions provide a shorthand. For example, `CodeAsset`s can
633-
/// be used as follows:
624+
/// they are invoked for an asset type that is not emitted by the hook. Most
625+
/// asset extensions provide a to check [buildAssetTypes] for their own asset
626+
/// type. For example, `CodeAsset`s can be used as follows:
634627
///
635628
/// ```dart
636629
/// if (input.config.buildCodeAssets) {

0 commit comments

Comments
 (0)