[augeas-devel] [PATCH 2/2] Removed useless array conversion in 'transform'
Frederik Wagner
fnerdwq at googlemail.com
Sun Mar 21 10:08:31 UTC 2010
* lib/augeas.rb:
array conversion of 'incl' and 'excl' are not needed,
conversion of 'excl' never happened due to dependence on 'incl
---
lib/augeas.rb | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/lib/augeas.rb b/lib/augeas.rb
index 6bbbf63..2805a26 100644
--- a/lib/augeas.rb
+++ b/lib/augeas.rb
@@ -100,8 +100,6 @@ class Augeas
raise ArgumentError, "No lens specified" unless lens
raise ArgumentError, "No files to include" unless incl
name = lens.split(".")[0].sub("@", "") unless name
- incl = [ incl ] unless incl.is_a?(Array)
- excl = [ excl ] unless incl.is_a?(Array)
xfm = "/augeas/load/#{name}/"
set_internal(xfm + "lens", lens)
--
1.7.0
More information about the augeas-devel
mailing list