Commit 4aa7dc0c by Torkel Ödegaard

minor change to cloudwatch code formatting

parent caf995bb
...@@ -46,12 +46,12 @@ export default class CloudWatchDatasource { ...@@ -46,12 +46,12 @@ export default class CloudWatchDatasource {
const hasInvalidStatistics = item.statistics.some(s => { const hasInvalidStatistics = item.statistics.some(s => {
if (s.indexOf('p') === 0) { if (s.indexOf('p') === 0) {
const matches = /^p\d{2}(?:\.\d{1,2})?$/.exec(s); const matches = /^p\d{2}(?:\.\d{1,2})?$/.exec(s);
return !matches || matches[0] !== s; return !matches || matches[0] !== s;
} }
return false; return false;
}); });
if (hasInvalidStatistics) { if (hasInvalidStatistics) {
throw { message: 'Invalid extended statistics' }; throw { message: 'Invalid extended statistics' };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment