findAlfredWorkflowAsset method

  1. @visibleForTesting
GithubAsset? findAlfredWorkflowAsset(
  1. GithubRelease release
)

Find the first GithubAsset ending in '.alfredworkflow' file in the GithubRelease assets list.

Implementation

@visibleForTesting
GithubAsset? findAlfredWorkflowAsset(GithubRelease release) {
  for (final GithubAsset asset in release.assets) {
    if (asset.name.endsWith('.alfredworkflow')) {
      return asset;
    }
  }

  return null;
}