about summary refs log tree commit diff
path: root/scripts/resolve-system-dependencies.pl.in
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-10-21T22·18-0400
committerShea Levy <shea@shealevy.com>2015-10-21T22·18-0400
commitfef8c3a5ab2caaa24bc102984ae0436efd1f419e (patch)
tree617d93c60a2cc1f82180d6577cf51201591c5406 /scripts/resolve-system-dependencies.pl.in
parent9155fbd38648b0e415a57c9cf3034ea2b21fcb66 (diff)
resolve-system-dependencies.pl: Simplify union impl
Patch by @pikajude
Diffstat (limited to 'scripts/resolve-system-dependencies.pl.in')
-rwxr-xr-xscripts/resolve-system-dependencies.pl.in10
1 files changed, 2 insertions, 8 deletions
diff --git a/scripts/resolve-system-dependencies.pl.in b/scripts/resolve-system-dependencies.pl.in
index 1294ebba5693..23416b75c023 100755
--- a/scripts/resolve-system-dependencies.pl.in
+++ b/scripts/resolve-system-dependencies.pl.in
@@ -42,14 +42,8 @@ sub mkset(@) {
 
 sub union($$) {
   my ($set1, $set2) = @_;
-  my $new = {};
-  foreach my $key (keys %$set1) {
-    $new->{$key} = $set1->{$key};
-  }
-  foreach my $key (keys %$set2) {
-    $new->{$key} = $set2->{$key};
-  }
-  $new
+  my %new = (%$set1, %$set2);
+  \%new
 }
 
 sub cache_filepath($) {