diff --git a/core/modules/update/update.fetch.inc b/core/modules/update/update.fetch.inc
index 8ac927f..f874ba9 100644
--- a/core/modules/update/update.fetch.inc
+++ b/core/modules/update/update.fetch.inc
@@ -220,7 +220,7 @@ function _update_refresh() {
   // out the stale data at this point.
   Drupal::keyValueExpirable('update_available_releases')->deleteAll();
 
-  foreach ($projects as $key => $project) {
+  foreach ($projects as $project) {
     update_create_fetch_task($project);
   }
 }
@@ -395,7 +395,6 @@ function update_parse_xml($raw_xml) {
   if (!isset($xml->short_name)) {
     return;
   }
-  $short_name = (string) $xml->short_name;
   $data = array();
   foreach ($xml as $k => $v) {
     $data[$k] = (string) $v;
