Removed unnecessary argument in Promise

This commit is contained in:
squidfunk 2017-05-24 16:04:19 +02:00 committed by Martin Donath
parent 0e30256604
commit f717345ec9
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application-fb835c1558.js"></script>
<script src="{{ base_url }}/assets/javascripts/application-06a3e72efd.js"></script>
<script>app.initialize({url:{base:"{{ base_url }}"}})</script>
{% for path in extra_javascript %}
<script src="{{ path }}"></script>

View File

@ -60,7 +60,7 @@ export default class GitHub extends Abstract {
*/
fetch_() {
return fetch(this.base_)
.then(response => response.json(), () => {})
.then(response => response.json())
.then(data => {
if (!(data instanceof Array))
throw new TypeError