Permalink
Browse files

no need for "return" or ";" for constants

  • Loading branch information...
1 parent 31c4259 commit 09ecf6c1b8684a3aca25926d8fbc37e97e9a0bb8 @timbunce committed Aug 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Java/Javap/Generator/Perl6.pm
View
4 lib/Java/Javap/Generator/Perl6.pm
@@ -341,11 +341,11 @@ method [% elem.name -%]
[% END %]
[% BLOCK constant_whole %]
- method [% elem.name %] (--> [% elem.type.perl_type_name %]) is export { return [% IF elem.type.perl_type_name == 'Str'
+ method [% elem.name %] (--> [% elem.type.perl_type_name %]) is export { [% IF elem.type.perl_type_name == 'Str'
%]'[% elem.value %]';[%
ELSIF elem.type.perl_type_name == 'Int' or
elem.type.perl_type_nmae == 'Num'
- %][% elem.value %];[%
+ %][% elem.value %][%
ELSE
%] ... [% END %] }
[% END %]

0 comments on commit 09ecf6c

Please sign in to comment.