Skip to content

Commit

Permalink
fixes #27, though it does it very naively. Should the script return s…
Browse files Browse the repository at this point in the history
…omething more useful on a purely derived unit type, rather than blank on the `Type` line?
  • Loading branch information
jberger committed Jul 16, 2012
1 parent 187aa97 commit 00ce07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Physics/Unit/Script.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sub name_info {
print "Class: $classes{$class}\n";

if ($class == -1 || $class == 2) {
print "Type: " . $u->type() . "\n" .
print "Type: " . ( $u->type() || '' ) . "\n" .
"Definition: " . $u->def() . "\n" .
"Expanded: " . $u->expanded() . "\n";
}
Expand Down

0 comments on commit 00ce07a

Please sign in to comment.