Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Cool-str] fixed .trans case where @changes is []

This un-breaks one of the tests in trans.rakudo.
  • Loading branch information...
commit 4d33bae5919d08bcf2347b0e5a1e3eb49c67e426 1 parent 2c66f9a
Carl Mäsak authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  src/core/Cool-str.pm
2  src/core/Cool-str.pm
@@ -164,6 +164,8 @@ augment class Cool {
164 164
     }
165 165
 
166 166
     multi method trans(*@changes) {
  167
+        return self unless @changes;
  168
+
167 169
         my sub expand($s) {
168 170
             return $s.list if $s ~~ Iterable|Positional;
169 171
             gather for $s.comb(/ (\w) '..' (\w) | . /, :match) {

0 notes on commit 4d33bae

Please sign in to comment.
Something went wrong with that request. Please try again.