about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-06 18:03:10 +0200
committerhut <hut@lavabit.com>2009-07-06 18:03:10 +0200
commita96af8f0ff240db4e6a9c494e9de9290d885b9aa (patch)
treebd0a6ea92e835304db0752168ceee2e47bed0d98
parent8be178ebc3fa863e543e3df3f85ca76b20ce4017 (diff)
downloadranger-a96af8f0ff240db4e6a9c494e9de9290d885b9aa.tar.gz
Fm.externally works without blocks too now.
-rw-r--r--code/fm.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/code/fm.rb b/code/fm.rb
index cb7dacb6..d6697eda 100644
--- a/code/fm.rb
+++ b/code/fm.rb
@@ -114,10 +114,8 @@ module Fm
 	end
 
 	def externally(&block)
-		return unless block_given?
-
 		closei
-		yield
+		yield if block_given?
 		starti
 	end