]> git.cworth.org Git - obsolete/notmuch-old/commit - lib/database.cc
lib: Simplify code flow in _resolve_message_id_to_thread_id
authorCarl Worth <cworth@cworth.org>
Mon, 12 Apr 2010 21:29:36 +0000 (14:29 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 12 Apr 2010 21:29:36 +0000 (14:29 -0700)
commit5c20bdf035b94bf5bda708bdd12e1b7bf44885f7
treeba88f51a79a0b7a88c663fedbb96abdfc0fe3b22
parente9bb90ba2c18ac6c36168ccb20099ef395d7dfb6
lib: Simplify code flow in _resolve_message_id_to_thread_id

There are two primary cases in this function, (the message exists in
the database or it does not). Previously the code for these two cases
was split and intermingled with goto-spaghetti connections.
lib/database.cc