couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [couchdb] 17/26: FIXUP: Remove unnecessary catch
Date Thu, 20 Jul 2017 19:05:30 GMT
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch optimize-ddoc-cache
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 53f60c57c3be42b8dd0e23a1f03852e17716719e
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
AuthorDate: Mon Jul 10 13:26:25 2017 -0500

    FIXUP: Remove unnecessary catch
---
 src/ddoc_cache/src/ddoc_cache_lru.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ddoc_cache/src/ddoc_cache_lru.erl b/src/ddoc_cache/src/ddoc_cache_lru.erl
index ff70342..49aa62d 100644
--- a/src/ddoc_cache/src/ddoc_cache_lru.erl
+++ b/src/ddoc_cache/src/ddoc_cache_lru.erl
@@ -99,7 +99,7 @@ init(_) ->
 
 terminate(_Reason, St) ->
     case is_pid(St#st.evictor) of
-        true -> catch exit(St#st.evictor, kill);
+        true -> exit(St#st.evictor, kill);
         false -> ok
     end,
     ok.

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message