Skip to content

Commit

Permalink
fix: remove require of util package (#592)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Selman <danscode@selman.org>
  • Loading branch information
dselman committed Apr 9, 2024
1 parent 1d9d88b commit 19b747a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/markdown-template/src/ModelVisitor.js
Expand Up @@ -14,8 +14,6 @@

'use strict';

const util = require('util');

const { CommonMarkModel, TemplateMarkModel } = require('@accordproject/markdown-common');

/**
Expand Down Expand Up @@ -44,10 +42,7 @@ class ModelVisitor {
} else if (thing.isEnumValue?.()) {
return this.visitEnumValueDeclaration(thing, parameters);
} else {
throw new Error('Unrecognised type: ' + typeof thing + ', value: ' + util.inspect(thing, {
showHidden: true,
depth: 2
}));
throw new Error('Unrecognised type: ' + typeof thing + ', value: ' + thing);
}
}

Expand Down

0 comments on commit 19b747a

Please sign in to comment.