message: refactor: find instead of for looping
diff: @@ -86,8 +86,8 @@ pub fn upload_buckets(
  verbose: bool,
  ) -> Result<Option<AssetManifest>, failure::Error> {
  let mut asset_manifest = None;
  - for namespace in &target.kv_namespaces() {
  - if let Some(bucket) = &namespace.bucket {
  + if let Some(site_namespace) = target.kv_namespaces().iter().find(|ns| { ns.bucket.is_some() }) {
  + if let Some(bucket) = &site_namespace.bucket {
  // We don't want folks setting their bucket to the top level directory,
  // which is where wrangler commands are always called from.
  let current_dir = env::current_dir()?;
  @@ -111,7 +111,7 @@ pub fn upload_buckets(
  path.display()
  )
  }
  - let manifest_result = kv::bucket::sync(target, user, &namespace.id, path, verbose)?;
  + let manifest_result = kv::bucket::sync(target, user, &site_namespace.id, path, verbose)?;
  if target.site.is_some() {
  if asset_manifest.is_none() {
  asset_manifest = Some(manifest_result)
  @@ -120,6 +120,8 @@ pub fn upload_buckets(
  unreachable!()
  }
  }
  + } else {
  + unreachable!()
  }
  }
  