mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
minor change to cloudwatch code formatting
This commit is contained in:
parent
caf995bb94
commit
4aa7dc0c85
@ -46,12 +46,12 @@ export default class CloudWatchDatasource {
|
||||
const hasInvalidStatistics = item.statistics.some(s => {
|
||||
if (s.indexOf('p') === 0) {
|
||||
const matches = /^p\d{2}(?:\.\d{1,2})?$/.exec(s);
|
||||
|
||||
return !matches || matches[0] !== s;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
if (hasInvalidStatistics) {
|
||||
throw { message: 'Invalid extended statistics' };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user