Small refactor: unnecessary Array.from#3279
Conversation
… array. Also saving in const isn't really necessary, same for the array in the loop below
|
No actionable comments were generated in the recent review. 🎉 WalkthroughThis pull request simplifies iteration patterns in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The merge didn't trigger it seems (probably because of the unrelated Build error 6 hours ago. Reran that job and it's green now. But the merge needs a nudge) |
Description:
Array.from was performed on this.player.alliances(), which already returns an array. Also it was saved in a const which isn't strictly necessary, same goes for the array in the loop below it.
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
tryout33