mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:02:46 +08:00
remove unnecessary return statement inside Discourse.Router.map
Ember's Router.map(callback) method doesn't expect any value to be returned by callback function. Therefore, return statements present inside Discourse.Router.map are unnecessary (and are silently ignored by Ember).
This commit is contained in:
parent
748ef94ce0
commit
cd3a2143d2
|
@ -22,7 +22,7 @@
|
|||
Discourse.BaseUri = '<%= Discourse::base_uri "/" %>';
|
||||
Discourse.Environment = '<%= Rails.env %>';
|
||||
Discourse.Router.map(function() {
|
||||
return Discourse.routeBuilder.call(this);
|
||||
Discourse.routeBuilder.call(this);
|
||||
});
|
||||
Discourse.start()
|
||||
</script>
|
||||
|
|
|
@ -71,7 +71,7 @@ Discourse.injectTestHelpers();
|
|||
Discourse.bindDOMEvents();
|
||||
|
||||
Discourse.Router.map(function() {
|
||||
return Discourse.routeBuilder.call(this);
|
||||
Discourse.routeBuilder.call(this);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user