aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xlater6
1 files changed, 2 insertions, 4 deletions
diff --git a/later b/later
index 7d2f9d0..8a5c686 100755
--- a/later
+++ b/later
@@ -77,10 +77,8 @@ class TitleMap:
sys.exit(f"later: cannot read title cache: {err}")
def get(self, key):
- title = self.map.get(key)
-
- if title or title == "":
- return title
+ if key in self.map:
+ return self.map[key]
if not re.fullmatch(r"https?://.*", key):
return None