Streamline couple code paths/texts, no func changes (goes with 7cb35852)
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / _Util.pm
index c22a5c6..4a30060 100644 (file)
@@ -145,9 +145,11 @@ sub scope_guard (&) {
     eval {
       $_[0]->[0]->();
       1;
-    } or do {
-      Carp::cluck "Execution of scope guard $_[0] resulted in the non-trappable exception:\n\n$@";
-    };
+    }
+      or
+    Carp::cluck(
+      "Execution of scope guard $_[0] resulted in the non-trappable exception:\n\n$@"
+    );
   }
 }