Skip to content

Commit 92f5bf0

Browse files
committed
Appease the linter!
1 parent 8997f0e commit 92f5bf0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/importer/attribute-types.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test('optional basic string', () => {
5353
test('required basic number', () => {
5454
const t = attributeTypes.requiredType(attributeTypes.basicNumberType);
5555

56-
r = t("foo");
56+
let r = t("foo");
5757
expect(r.valid).toBeFalsy();
5858
expect(r.warnings).toMatchObject([]);
5959
expect(r.errors).toMatchObject(["This is not a valid number"]);
@@ -68,7 +68,7 @@ test('optional basic number', () => {
6868
// Also tests that optionalType converts errors into warnings
6969
const t = attributeTypes.optionalType(attributeTypes.basicNumberType);
7070

71-
r = t("foo");
71+
let r = t("foo");
7272
expect(r.valid).toBeTruthy();
7373
expect(r.value).toBeUndefined();
7474
expect(r.warnings).toMatchObject(["This is not a valid number"]);

lib/importer/backend.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ function validateMapping(range, mapping) {
460460

461461
// Output types are optional, we fall back to basicStringType if not specified
462462
if(mapping.attributeTypes) {
463+
// eslint-disable-next-line no-unused-vars
463464
for(const [attribute, attrType] of Object.entries(mapping.attributeTypes)) {
464465
assert(attrType instanceof Function);
465466
}
@@ -515,7 +516,7 @@ exports.SessionPerformMappingJob = (sid, range, mapping) => {
515516

516517
if (foundSomeValues) {
517518
// Only if we found something do we validate and map the types
518-
mappedRecord = {};
519+
let mappedRecord = {};
519520

520521
Object.entries(record).forEach((element) => {
521522
const [attr, inputVal] = element;

lib/importer/backend.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ describe("Backend tests", () => {
468468

469469
test('validation', () => {
470470
const fixtures = testFiles.get("test-validation").map(prefix_fixture)
471-
for( [filename, sheetname] of fixtures) {
471+
for( const [filename, sheetname] of fixtures) {
472472
const sid = backend.CreateSession();
473473
backend.SessionSetFile(sid, filename);
474474

0 commit comments

Comments
 (0)