Skip to content

Commit

Permalink
Clean up <SearchResults /> (indentation)
Browse files Browse the repository at this point in the history
  • Loading branch information
Macxim committed Aug 11, 2017
1 parent 7273635 commit 3da29a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/SearchResults/index.js
Expand Up @@ -23,10 +23,7 @@ class SearchResults extends Component {
const TERM = searchTerm.replace(/\s/g, '+');
fetch(`${PATH_BASE}${PATH_SEARCH}${PATH_MOVIE}?api_key=${API_KEY}&query=${TERM}&${PATH_PAGE}${page}`)
.then(response => response.json())
.then(movies => {
this.setSearchMovies(movies)
});

.then(movies => { this.setSearchMovies(movies) });
}

setSearchMovies = (movies) => {
Expand Down

0 comments on commit 3da29a3

Please sign in to comment.