summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/method_source/source_location.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/method_source/source_location.rb b/lib/method_source/source_location.rb
index 9161854..1e2a22a 100644
--- a/lib/method_source/source_location.rb
+++ b/lib/method_source/source_location.rb
@@ -46,7 +46,7 @@ module MethodSource
set_trace_func nil
@file = File.expand_path(@file) if @file && File.exist?(File.expand_path(@file))
end
- return [@file, @line] if File.exist?(@file.to_s)
+ [@file, @line] if @file
end
end
end