summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-10-07 12:44:27 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-10-07 12:44:27 -0400
commit0dfefe69374e668a6b720cf6aaaf330aaad69339 (patch)
tree551d783cbeae74ac870f5a5c2c947b4e13d8e4d8 /state.rb
parent5cb0be51e428b900c33bbe7dd14767887159be32 (diff)
downloadupstate-0dfefe69374e668a6b720cf6aaaf330aaad69339.tar.gz
upstate-0dfefe69374e668a6b720cf6aaaf330aaad69339.tar.xz
upstate-0dfefe69374e668a6b720cf6aaaf330aaad69339.zip
Fix another missing inject argument
Array#inject had no argument in State#params, again leading to problems when running against a single-element array.
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.rb b/state.rb
index db21952..fbe5566 100644
--- a/state.rb
+++ b/state.rb
@@ -133,7 +133,7 @@ class State
# Parameters to this state
def params
@deps.map{ |x| x.params }.inject({}){ |x,y| x.merge y }.merge \
- @holds.map{ |x| x.params }.inject{ |x,y| x.merge y }
+ @holds.map{ |x| x.params }.inject({}){ |x,y| x.merge y }
end
# Set this state to untrue without running any falling edge code