It's hard to give an answer without getting more c...
# codereview
d
It's hard to give an answer without getting more context in this situation
s
https://github.com/sudhirkhanger/Genius Anything specific you want to know?
d
by context I just mean specifically what you're trying to do here. E.g. whether you intend for movieList to stay the same, or to change.
It looks like movieRepository.getMovies() is some sort of API call and it could possibly return a different lists every time. Doing
val movieList = movieRepository.getMovies()
will cache the result so I'm not sure that's necessarily what you want