Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scampi committed Dec 30, 2016
1 parent 5babf9a commit 7372fce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/fixtures/logstash_fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function stubbedLogstashFields() {
// | | |aggregatable
// | | | |searchable
// name type | | | | |metadata
['bytes', 'number', true, true, true, true, { count: 10, doc_values: true } ],
['bytes', 'number', true, true, true, true, { count: 10, docValues: true } ],
['ssl', 'boolean', true, true, true, true, { count: 20 } ],
['@timestamp', 'date', true, true, true, true, { count: 30 } ],
['time', 'date', true, true, true, true, { count: 30 } ],
Expand All @@ -20,7 +20,7 @@ function stubbedLogstashFields() {
['geo.coordinates', 'geo_point', true, true, true, true ],
['extension', 'string', true, true, true, true ],
['machine.os', 'string', true, true, true, true ],
['machine.os.raw', 'string', true, false, true, true, { doc_values: true } ],
['machine.os.raw', 'string', true, false, true, true, { docValues: true } ],
['geo.src', 'string', true, true, true, true ],
['_id', 'string', false, false, true, true ],
['_type', 'string', false, false, true, true ],
Expand All @@ -42,7 +42,7 @@ function stubbedLogstashFields() {
] = row;

const {
doc_values = false,
docValues = false,
count = 0,
script,
lang = script ? 'expression' : undefined,
Expand All @@ -52,7 +52,7 @@ function stubbedLogstashFields() {
return {
name,
type,
doc_values,
doc_values: docValues,
indexed,
analyzed,
aggregatable,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/agg_types/__tests__/param_types/_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Field', function () {
getIndexPattern: () => indexPattern
});
expect(fields).to.not.have.length(0);
for (let field of fields) {
for (const field of fields) {
expect(field.aggregatable).to.be(true);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/filters/__tests__/prop_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('prop filter', function () {
const count = new Map();
const objects = [];

for (let name of names) {
for (const name of names) {
if (!count.has(name)) {
count.set(name, 1);
}
Expand Down

0 comments on commit 7372fce

Please sign in to comment.