Skip to content

Commit 999de84

Browse files
Add filter to prevent empty actions (#206)
1 parent 7937fe9 commit 999de84

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/transformation/Transformation.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,12 @@ class Transformation {
7575
* @return {string}
7676
*/
7777
toString(): string {
78-
return this.actions.map((action) => {
79-
return action.toString();
80-
}).join('/');
78+
return this.actions
79+
.map((action) => {
80+
return action.toString();
81+
})
82+
.filter((a) => a)
83+
.join('/');
8184
}
8285

8386

0 commit comments

Comments
 (0)