mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prettier: ran on all files again, sorry. now settings are defined in package.json
This commit is contained in:
@@ -100,12 +100,7 @@ Parser.prototype = {
|
||||
},
|
||||
|
||||
metricExpression: function() {
|
||||
if (
|
||||
!this.match('templateStart') &&
|
||||
!this.match('identifier') &&
|
||||
!this.match('number') &&
|
||||
!this.match('{')
|
||||
) {
|
||||
if (!this.match('templateStart') && !this.match('identifier') && !this.match('number') && !this.match('{')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -248,14 +243,10 @@ Parser.prototype = {
|
||||
|
||||
matchToken: function(type, index) {
|
||||
var token = this.tokens[this.index + index];
|
||||
return (
|
||||
(token === undefined && type === '') || (token && token.type === type)
|
||||
);
|
||||
return (token === undefined && type === '') || (token && token.type === type);
|
||||
},
|
||||
|
||||
match: function(token1, token2) {
|
||||
return (
|
||||
this.matchToken(token1, 0) && (!token2 || this.matchToken(token2, 1))
|
||||
);
|
||||
return this.matchToken(token1, 0) && (!token2 || this.matchToken(token2, 1));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user