Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslt committed Jan 25, 2022
1 parent 65c5449 commit acc3d00
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { schema as avsc } from 'avsc';
import { v4 as uuid4, v5 as uuid5 } from 'uuid';
import mersenne = require('mersenne-twister');

import { v4 as uuid4, v5 as uuid5 } from 'uuid';

const defaultGenerators = {
int: (_, { generators: { random } }: Context) =>
Expand Down Expand Up @@ -154,9 +153,9 @@ function generateRecord(avroSchema, context) {
return fields.reduce((record, { name, type }) => {
record[name] = Array.isArray(type)
? generateUnionType(type, {
...context,
namespace: currentNamespace,
})
...context,
namespace: currentNamespace,
})
: generateDataForType(type, { ...context, namespace: currentNamespace });

return record;
Expand Down

0 comments on commit acc3d00

Please sign in to comment.