Skip to content

Commit 0cd27e0

Browse files
committed
Update StringfiableExtension.pm
Simplify element_stringify
1 parent 1775a63 commit 0cd27e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/PDL/StringfiableExtension.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ use List::AllUtils ();
1818
return $_pdl_stringify_temp_single->set(0, $element)->string;
1919
}
2020
# otherwise
21-
my $string = $_pdl_stringify_temp->set(0,0, $element)->string;
22-
( $_pdl_stringify_temp->string =~ /\[(.*)\]/ )[0];
21+
( $_pdl_stringify_temp->set(0,0, $element)->string =~ /\[(.*)\]/ )[0];
2322
}
2423
}
2524

0 commit comments

Comments
 (0)