Skip to content

Commit

Permalink
fix: break loop when actor is set
Browse files Browse the repository at this point in the history
  • Loading branch information
andonary committed Sep 2, 2023
1 parent a698789 commit ab6d113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/command/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ function _actorTranslation(stepFile, translationSelected) {
let actor;

for (const translationAvailable of translations) {
if (actor) {
break;
}

if (translationSelected === translationAvailable) {
const nameOfActor = require('../../translations')[translationAvailable].I;

Expand Down

0 comments on commit ab6d113

Please sign in to comment.