Permalink
Browse files

use :exists instead of deprecated .exists

  • Loading branch information...
coke committed Nov 15, 2013
1 parent 3830979 commit 49b5139f065655b626ee17a96af10cf4ba1e1737
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/HTTP/Status.pm6
View
@@ -79,7 +79,7 @@ my %HTTPCODES = {
};
our sub get_http_status_msg ($code) is export {
- if %HTTPCODES.exists($code) {
+ if %HTTPCODES{$code}:exists {
return %HTTPCODES{$code};
}
return 'Unknown';

0 comments on commit 49b5139

Please sign in to comment.