From 1413a81544b42d55a942a00ec34f55a45d296627 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 20 Jul 2009 02:48:42 +0200 Subject: cleaned up code/keys.rb --- code/keys.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/code/keys.rb b/code/keys.rb index 42b4314d..04e79e62 100644 --- a/code/keys.rb +++ b/code/keys.rb @@ -12,10 +12,7 @@ module Fm if str =~ /^\s?(.*)(|)$/ @buffer.clear if $2 == '' - begin - Dir.mkdir($1) - rescue - end + Dir.mkdir($1) rescue lograise @pwd.schedule end end @@ -25,10 +22,7 @@ module Fm if str =~ /^\s?(.*)(|)$/ @buffer.clear if $2 == '' - begin - File.open($1, 'a').close - rescue - end + File.open($1, 'a').close rescue lograise @pwd.schedule end end @@ -543,7 +537,7 @@ module Fm /:[^<]*/ /[fF/!].*/ /r\d*\w*[^r]/ - /(c[wmo]|cor|cd|mv).*/ + /(c[wmo]|cd|mv).*/ /b(l(o(c(k(.*)?)?)?)?)?/ /m(k(d(i(r(.*)?)?)?)?)?/ /t(o(u(c(h(.*)?)?)?)?)?/ -- cgit 1.4.1-2-gfad0