mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech: more tslint rules
This commit is contained in:
@@ -64,7 +64,7 @@ export class QueryVariable implements Variable {
|
||||
return this.model;
|
||||
}
|
||||
|
||||
setValue(option){
|
||||
setValue(option) {
|
||||
return this.variableSrv.setOptionAsCurrent(this, option);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ export class VariableSrv {
|
||||
createVariableFromModel(model) {
|
||||
var ctor = variableTypes[model.type].ctor;
|
||||
if (!ctor) {
|
||||
throw "Unable to find variable constructor for " + model.type;
|
||||
throw {message: "Unable to find variable constructor for " + model.type};
|
||||
}
|
||||
|
||||
var variable = this.$injector.instantiate(ctor, {model: model});
|
||||
|
||||
Reference in New Issue
Block a user