chiark
/
gitweb
/
~ianmdlvl
/
nailing-cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
952e5ae
)
Remove debug code
author
Jeff Ober
<jober@ziprecruiter.com>
Fri, 10 Jan 2020 18:55:04 +0000
(13:55 -0500)
committer
Jeff Ober
<jober@ziprecruiter.com>
Fri, 10 Jan 2020 18:55:04 +0000
(13:55 -0500)
lib/TOML/Tiny/Parser.pm
patch
|
blob
|
history
diff --git
a/lib/TOML/Tiny/Parser.pm
b/lib/TOML/Tiny/Parser.pm
index daf83c513d97e0f723e082556823098f5d2ee9f9..b1a1faf3161393ea1eccbdaaa53f5993863e5f11 100644
(file)
--- a/
lib/TOML/Tiny/Parser.pm
+++ b/
lib/TOML/Tiny/Parser.pm
@@
-86,7
+86,7
@@
$src
sub expect_type {
my ($self, $token, $expected) = @_;
- my $actual =
eval{ $token->type }; use Carp; confess $@ if $@
;
+ my $actual =
$token->type
;
$self->parse_error($token, "expected $expected, but found $actual")
unless $actual eq $expected;
}