You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If trying to move an item higher when it is already at the top of list (via move_higher), the return is nil (because it checks for higher_item). But a move_to_top method only checks if the item is in_list?.
(move_lower and move_to_bottom act the same way)
Shouldn't these two groups of methods either both return nil or both be successful? Either would make sense, but the inconsistency doesn't make sense to me.
The text was updated successfully, but these errors were encountered:
Hi @dellch, sorry for the very delayed response. Can you explain why this inconsistency is causing a problem? Is it because there is a bug in the outcome, or you'd just prefer a certain value returned?
If trying to move an item higher when it is already at the top of list (via move_higher), the return is nil (because it checks for higher_item). But a move_to_top method only checks if the item is in_list?.
(move_lower and move_to_bottom act the same way)
Shouldn't these two groups of methods either both return nil or both be successful? Either would make sense, but the inconsistency doesn't make sense to me.
The text was updated successfully, but these errors were encountered: