sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 4db7e7f6e969aabb7ac20c8b0dbc1064933eb0ff
parent 3855a6997135aecdcc6b483ab7e85285b73f9490
Author: Zeger-Jan van de Weg <mail@zjvandeweg.nl>
Date:   Fri,  6 Feb 2015 12:19:24 +0100

Minor improvements after comments

Diffstat:
M lib/sup/contact.rb | 2 +-
M lib/sup/person.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/contact.rb b/lib/sup/contact.rb
@@ -31,7 +31,7 @@ class ContactManager
   def update_alias person, aalias=nil
     ## Deleting old data if it exists
     old_aalias = @p2a[person]
-    unless old_aalias.nil?
+    if old_aalias
       @a2p.delete old_aalias
       @e2p.delete person.email
     end
diff --git a/lib/sup/person.rb b/lib/sup/person.rb
@@ -19,7 +19,7 @@ class Person
   end
 
   def to_s
-    if @name && @email
+    if @name
       "#@name <#@email>"
     else
       @email