aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-02-12 19:00:37 +0100
committerBjörn Gustavsson <[email protected]>2010-02-16 13:24:55 +0100
commitc12397f937d450d885ca6ec44d53ef34ff8788f4 (patch)
tree2f8f0d25d680a3da561a5547b43c23094e4102f3 /lib/parsetools
parent152088ba9594105ddee758021e4f5428a5e710cc (diff)
downloadotp-c12397f937d450d885ca6ec44d53ef34ff8788f4.tar.gz
otp-c12397f937d450d885ca6ec44d53ef34ff8788f4.tar.bz2
otp-c12397f937d450d885ca6ec44d53ef34ff8788f4.zip
parsetools: Don't use 'try...of' when 'try' will do
Diffstat (limited to 'lib/parsetools')
-rw-r--r--lib/parsetools/src/yecc.erl3
1 files changed, 1 insertions, 2 deletions
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.