From 20f744bd53847629909bde832b10fd37181a9527 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 22 Sep 2015 19:09:54 +0100 Subject: [PATCH] Remove useless try blocks in comment functions We should not have exceptions raised there, if there is, do not ignore them --- rc/c-family.kak | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/rc/c-family.kak b/rc/c-family.kak index 0413301f..89e919e8 100644 --- a/rc/c-family.kak +++ b/rc/c-family.kak @@ -196,10 +196,8 @@ def c-family-comment-selection -docstring "Comment the current selection" %{ ## Comment the selection exec %{a */i/* 3H} } catch %{ - try %{ - ## Uncomment the commented selection - exec -draft %{s(\A/\* )|( \*/\z)d} - } + ## Uncomment the commented selection + exec -draft %{s(\A/\* )|( \*/\z)d} } } } @@ -219,10 +217,8 @@ def c-family-comment-line -docstring "Comment the current line" %{ ## Comment the line exec %{i// 3H} } catch %{ - try %{ - ## Uncomment the line - exec -draft %{s^//\h*d} - } + ## Uncomment the line + exec -draft %{s^//\h*d} } } }