mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Changed functions to arrow functions for only-arrow-functions rule.
This commit is contained in:
@@ -73,7 +73,7 @@ export default class GraphiteQuery {
|
||||
|
||||
return _.reduce(
|
||||
arr,
|
||||
function(result, segment) {
|
||||
(result, segment) => {
|
||||
return result ? result + '.' + segment.value : segment.value;
|
||||
},
|
||||
''
|
||||
@@ -133,7 +133,7 @@ export default class GraphiteQuery {
|
||||
}
|
||||
|
||||
moveAliasFuncLast() {
|
||||
const aliasFunc = _.find(this.functions, function(func) {
|
||||
const aliasFunc = _.find(this.functions, func => {
|
||||
return func.def.name.startsWith('alias');
|
||||
});
|
||||
|
||||
|
||||
@@ -1370,7 +1370,7 @@ Lexer.prototype = {
|
||||
};
|
||||
},
|
||||
|
||||
isPunctuator: function(ch1) {
|
||||
isPunctuator: ch1 => {
|
||||
switch (ch1) {
|
||||
case '.':
|
||||
case '(':
|
||||
|
||||
Reference in New Issue
Block a user