aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v1/param.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v1/param.rb')
-rw-r--r--lib/sisu/v1/param.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sisu/v1/param.rb b/lib/sisu/v1/param.rb
index 72593207..889ec351 100644
--- a/lib/sisu/v1/param.rb
+++ b/lib/sisu/v1/param.rb
@@ -94,8 +94,8 @@ module SiSU_Param
if File.exist?(@pstorefile)
param_msg='Parameters from pstore'
retrieve_store=PStore.new(@pstorefile)
- retrieve_store.transaction do |s|
- @md=s['md']
+ retrieve_store.transaction do
+ @md=retrieve_store['md']
end
@md
else
@@ -979,10 +979,10 @@ module SiSU_Param
tell=SiSU_Screen::Ansi.new(@md.cmd,"PStore -> #@pstorefile")
tell.txt_grey if @md.cmd =~/v/
store=PStore.new(@pstorefile)
- store.transaction do |s|
- s['md']=@md
+ store.transaction do
+ store['md']=@md
#doc.each{|x,y| puts "#{x}, #{y}; "}
- s.commit
+ store.commit
end
@@md=@md=nil
end