Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stop using deprecated .exists method.
  • Loading branch information
jnthn committed Oct 3, 2013
1 parent c901e44 commit 6b8fc4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Debugger/UI/CommandLine.pm
Expand Up @@ -258,7 +258,7 @@ my class DebugState {
}

method normalize_filename($file) {
if %sources.exists($file) {
if %sources{$file}:exists {
return $file;
}
else {
Expand Down Expand Up @@ -696,7 +696,7 @@ sub thrown(|) {
$fail = True;
last;
}
if %sources.exists(.file) {
if %sources{.file}:exists {
$file = .file;
$line = .line;
last;
Expand Down Expand Up @@ -724,7 +724,7 @@ sub unhandled(|) {
my $ctx = CALLER;
my ($file, $line);
for @$bt {
if %sources.exists(.file) {
if %sources{.file}:exists {
$file = .file;
$line = .line;
last;
Expand Down

0 comments on commit 6b8fc4f

Please sign in to comment.