]> git.cworth.org Git - sup/commitdiff
a few trivial cleanups
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 25 May 2008 03:43:55 +0000 (20:43 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 25 May 2008 03:43:55 +0000 (20:43 -0700)
lib/sup/modes/edit-message-mode.rb

index 7fdb4f1991c496dbd52a4c0eef92c785095b88e5..88debb28126c635205ec87e4fcd7504465415928 100644 (file)
@@ -378,13 +378,11 @@ protected
        if text
          @header[field] = parse_header field, text
          update
-         field
        end
     else
-      default =
-        case field
+      default = case field
         when *MULTI_HEADERS
-         @header[field] ||= []
+          @header[field] ||= []
           @header[field].join(", ")
         else
           @header[field]
@@ -395,7 +393,6 @@ protected
         text = contacts.map { |s| s.longname }.join(", ")
         @header[field] = parse_header field, text
         update
-        field
       end
     end
   end