Skip to content

Commit

Permalink
debug method to throw if not instantiated
Browse files Browse the repository at this point in the history
  • Loading branch information
leviwheatcroft authored and webketje committed Dec 3, 2022
1 parent 911ef5b commit 194be6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const path = require('path')
const isUtf8 = require('is-utf8')
const getTransformer = require('./get-transformer')
let debug = console.log
let debug = () => {
throw new Error('uninstantiated debug')
}

function parseFilepath(filename) {
const isNested = filename.includes(path.sep)
Expand Down

0 comments on commit 194be6b

Please sign in to comment.