about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-10-29 22:48:33 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-10-29 22:48:33 +0100
commit1b1ac6dcc0f8de302781c8ebcc57eb9235238f62 (patch)
treef8f314b557727fd44bae0b92fee598e21162696e
parent3a58eb320e505b73572b4f59804f20b12e37a0a9 (diff)
downloadnotyet-1b1ac6dcc0f8de302781c8ebcc57eb9235238f62.tar.gz
notyet-1b1ac6dcc0f8de302781c8ebcc57eb9235238f62.tar.xz
notyet-1b1ac6dcc0f8de302781c8ebcc57eb9235238f62.zip
propagate X down, too
-rwxr-xr-xnotyet6
1 files changed, 1 insertions, 5 deletions
diff --git a/notyet b/notyet
index 925722d..5d1633a 100755
--- a/notyet
+++ b/notyet
@@ -58,11 +58,7 @@ class Entry < Struct.new(:depth, :state, :desc, :file, :line, :children)
         self.state = "?"
       end
 
-      if state == "x"
-        force("x")
-      elsif state == "?"
-        force("?")
-      end
+      force(state)  if "?xX".index(state)
 
       if desc =~ /^(?:\(.*?\)\s*)?(\d\d\d\d-\d\d-\d\d)/
         diff = "%+d" % (Date.parse($1) - TODAY)