diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Bot/Games/Trait/Method/Formatted.pm | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/Bot/Games/Trait/Method/Formatted.pm b/lib/Bot/Games/Trait/Method/Formatted.pm index f5e6415..0145bea 100644 --- a/lib/Bot/Games/Trait/Method/Formatted.pm +++ b/lib/Bot/Games/Trait/Method/Formatted.pm @@ -5,18 +5,8 @@ has formatter => ( is => 'rw', isa => 'CodeRef', default => sub { sub { - my $self = shift; - my ($to_print) = @_; - if (blessed $to_print) { - $to_print = "$to_print"; - } - elsif (ref($to_print) && ref($to_print) eq 'ARRAY') { - $to_print = join ', ', @$to_print; - } - elsif (!$to_print) { - $to_print = 'false'; - } - return $to_print; + warn "no formatter specified!"; + return @_; } }, ); |