As long as the code works as expected and is easily readable then either would be fine.