Fix some bizarro code left behind by a much earlier change.
[gitmo/Class-MOP.git] / lib / Class / MOP / Attribute.pm
index a433bec..174b04f 100644 (file)
@@ -241,7 +241,7 @@ sub get_write_method_ref {
 }
 
 sub is_default_a_coderef {
-    ('CODE' eq ref($_[0]->{'default'} || $_[0]->{default}))
+    ('CODE' eq ref($_[0]->{'default'}))
 }
 
 sub default {