about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-11-23 12:21:19 -0800
committerEric Wong <normalperson@yhbt.net>2010-11-23 12:22:43 -0800
commite83353f18f4813365581be81672eaf2e3c2e3d3a (patch)
tree613efcb0760daadb498487256513b2480140e536
parentb8ee33b8e38911012fc055f02da1878e45eb721a (diff)
downloadmetropolis-e83353f18f4813365581be81672eaf2e3c2e3d3a.tar.gz
tc/hdb: minor formatting cleanups
No point in using more lines than we need to.
-rw-r--r--lib/metropolis/tc/hdb.rb8
1 files changed, 2 insertions, 6 deletions
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!