From c12397f937d450d885ca6ec44d53ef34ff8788f4 Mon Sep 17 00:00:00 2001 From: Kostis Sagonas Date: Fri, 12 Feb 2010 19:00:37 +0100 Subject: parsetools: Don't use 'try...of' when 'try' will do --- lib/parsetools/src/yecc.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/parsetools/src/yecc.erl b/lib/parsetools/src/yecc.erl index 1f1fa96e61..9c164c00a4 100644 --- a/lib/parsetools/src/yecc.erl +++ b/lib/parsetools/src/yecc.erl @@ -348,8 +348,7 @@ atom_option(verbose) -> {verbose, true}; atom_option(Key) -> Key. is_filename(T) -> - try filename:flatten(T) of - Filename -> Filename + try filename:flatten(T) catch error: _ -> no end. -- cgit v1.2.3