From 3eed99ba6e8bd3873661b668bfc8a835d9f80599 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Fri, 1 Nov 2024 11:13:46 -0700 Subject: [PATCH] Remove unnecessary variable initializaiton 5abc69f added new rescue behavior for the Solaris mountpoint resovler but, in doing so, also added unnecessary variable initialization. This commit removes declaring the mount variable as an empty hash. --- lib/facter/resolvers/solaris/mountpoints.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/facter/resolvers/solaris/mountpoints.rb b/lib/facter/resolvers/solaris/mountpoints.rb index da4365a588..e8b440ac60 100644 --- a/lib/facter/resolvers/solaris/mountpoints.rb +++ b/lib/facter/resolvers/solaris/mountpoints.rb @@ -33,7 +33,6 @@ def read_mounts(fact_name) next if fs.mount_type == 'autofs' - mounts = {} device = fs.name filesystem = fs.mount_type path = fs.mount_point