From e83353f18f4813365581be81672eaf2e3c2e3d3a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 23 Nov 2010 12:21:19 -0800 Subject: tc/hdb: minor formatting cleanups No point in using more lines than we need to. --- lib/metropolis/tc/hdb.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/metropolis/tc/hdb.rb') diff --git a/lib/metropolis/tc/hdb.rb b/lib/metropolis/tc/hdb.rb index 4c58ca8..11bc65d 100644 --- a/lib/metropolis/tc/hdb.rb +++ b/lib/metropolis/tc/hdb.rb @@ -110,9 +110,7 @@ module Metropolis::TC::HDB def head(key) size = reader(key) { |hdb| hdb.vsiz(key) or ex!(:vsiz, hdb) } 0 > size and return r(404) - [ 200, { - 'Content-Length' => size.to_s, - }.merge!(@headers), [] ] + [ 200, { 'Content-Length' => size.to_s }.merge!(@headers), [] ] end def get(key) @@ -123,9 +121,7 @@ module Metropolis::TC::HDB ex!(:get, hdb) end end - [ 200, { - 'Content-Length' => value.size.to_s, - }.merge!(@headers), [ value ] ] + [ 200, { 'Content-Length' => value.size.to_s }.merge!(@headers), [ value ] ] end def close! -- cgit v1.2.3-24-ge0c7