Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abrantesarthur committed Jan 19, 2025
1 parent 127fd37 commit c8d59f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/codecTools/createDefaultCodec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ import * as t from 'io-ts';
export const createDefaultCodec = <C extends t.Mixed>(
codec: C,
): t.TypeOf<C> => {
console.log({codecName: codec.name})
console.log({ codecName: codec.name });

Check failure on line 44 in src/codecTools/createDefaultCodec.ts

View workflow job for this annotation

GitHub Actions / run-eslint

Unexpected console statement
// If the codec is an union
if (codec instanceof t.UnionType) {
console.log("union type")
console.log('union type');

Check failure on line 47 in src/codecTools/createDefaultCodec.ts

View workflow job for this annotation

GitHub Actions / run-eslint

Unexpected console statement
// The default for a union containing arrays is a default array
const arrayType = codec.types.find(
(type: any) => type instanceof t.ArrayType,
Expand All @@ -62,7 +62,7 @@ export const createDefaultCodec = <C extends t.Mixed>(
type instanceof t.ArrayType,
);
if (objectType) {
console.log("objectType")
console.log('objectType');

Check failure on line 65 in src/codecTools/createDefaultCodec.ts

View workflow job for this annotation

GitHub Actions / run-eslint

Unexpected console statement
return createDefaultCodec(objectType);
}

Expand All @@ -71,7 +71,7 @@ export const createDefaultCodec = <C extends t.Mixed>(
(type: any) => type instanceof t.NullType || type.name === 'null',
);
if (hasNull) {
console.log("hasNull")
console.log('hasNull');

Check failure on line 74 in src/codecTools/createDefaultCodec.ts

View workflow job for this annotation

GitHub Actions / run-eslint

Unexpected console statement
return null as t.TypeOf<C>;
}

Expand Down

0 comments on commit c8d59f0

Please sign in to comment.