mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Enable JSHINT's unused option. It caught a bunch of suspicious stuff which is fixed in this commit.
This commit is contained in:
@@ -13,9 +13,8 @@ Discourse.AdminApiController = Ember.ArrayController.extend({
|
||||
Generates a master api key
|
||||
|
||||
@method generateMasterKey
|
||||
@param {Discourse.ApiKey} the key to regenerate
|
||||
**/
|
||||
generateMasterKey: function(key) {
|
||||
generateMasterKey: function() {
|
||||
var self = this;
|
||||
Discourse.ApiKey.generateMasterKey().then(function (key) {
|
||||
self.get('model').pushObject(key);
|
||||
|
||||
Reference in New Issue
Block a user