projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Consistently use "eq ''" when checking for exception refness
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Storage
/
TxnScopeGuard.pm
diff --git
a/lib/DBIx/Class/Storage/TxnScopeGuard.pm
b/lib/DBIx/Class/Storage/TxnScopeGuard.pm
index
844b2cc
..
09a3fc5
100644
(file)
--- a/
lib/DBIx/Class/Storage/TxnScopeGuard.pm
+++ b/
lib/DBIx/Class/Storage/TxnScopeGuard.pm
@@
-25,7
+25,7
@@
sub new {
# There got to be a saner way of doing this...
if (defined $@ and "$@" ne '') {
weaken(
- $guard->{existing_exception_ref} = (ref $@ ne '') ? $@ : \$@
+ $guard->{existing_exception_ref} = (ref $@ eq '') ? \$@ : $@
);
}