From 741b7061f42bea3b49076ad372ba53f9a587b580 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 9 Aug 2018 12:58:01 +0700 Subject: [PATCH] searchdocs.py: Use else for final option A default branch is needed to ensure branch coverage. Related to https://github.com/coala/corobo/issues/611 --- plugins/searchdocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/searchdocs.py b/plugins/searchdocs.py index a6c54a52..d476733e 100644 --- a/plugins/searchdocs.py +++ b/plugins/searchdocs.py @@ -30,7 +30,7 @@ def search(self, msg, arg): return (self.API_DOCS + '/search.html?q=' + '+'.join(re.split(r'\s+', search_string))) - elif doc_type.lower() == 'user': + else: return (self.USER_DOCS + '/search.html?q=' + '+'.join(re.split(r'\s+', search_string)))