Skip to content

Conversation

plural
Copy link
Contributor

@plural plural commented Jul 3, 2022

No description provided.

@plural plural requested a review from distributive July 3, 2022 21:16
card_pools.each do |p|
next if p['cycles'].nil?
p['cycles'].each do |s|
next if p['card_cycle_ids'].nil?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outside of this pr, can you use dot syntax for these accesses?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. i'll do a cleanup CL. Is there anything gained aside from -3 characters per access?

Copy link

@NoahTheDuke NoahTheDuke Jul 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preface: I don't exactly remember the details so take this with a grain of salt.

That being said, I don't think so and it doesn't actually matter so you don't have to change over if you don't want to. It was something I had to do when the properties used dashes instead of underscores and now that they're underscores you can use dot syntax, but like javascript, they're equivalent so don't do extra work if you don't wanna.

@plural plural merged commit 65f9b1b into Null-Signal-Games:main Jul 3, 2022
@plural plural deleted the card-pool-cycle-and-set-fix branch July 3, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants