瀏覽代碼

make interpolateVariable arrow function

Sven Klemm 7 年之前
父節點
當前提交
215ca50cc1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      public/app/plugins/datasource/mysql/datasource.ts

+ 2 - 2
public/app/plugins/datasource/mysql/datasource.ts

@@ -18,7 +18,7 @@ export class MysqlDatasource {
     this.interval = (instanceSettings.jsonData || {}).timeInterval;
   }
 
-  interpolateVariable(value, variable) {
+  interpolateVariable = (value, variable) => {
     if (typeof value === 'string') {
       if (variable.multi || variable.includeAll) {
         return this.queryModel.quoteLiteral(value);
@@ -35,7 +35,7 @@ export class MysqlDatasource {
       return this.queryModel.quoteLiteral(v);
     });
     return quotedValues.join(',');
-  }
+  };
 
   query(options) {
     const queries = _.filter(options.targets, target => {