From f72d25622d55448a818ee217e43c7acde5101e1c Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Mon, 21 Oct 2019 10:23:27 +0200 Subject: [PATCH] Remove unused import and variable * `os` was imported but never used. * `reject` was declared but never used. --- jest/snapshots.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jest/snapshots.js b/jest/snapshots.js index 55eebdb..6c212fd 100644 --- a/jest/snapshots.js +++ b/jest/snapshots.js @@ -1,6 +1,5 @@ const fs = require('fs'); const path = require('path'); -const os = require('os'); const util = require('util'); const mkdirp = require('mkdirp'); const readline = require('readline'); @@ -56,7 +55,7 @@ class Snapshots { return []; } - return new Promise((resolve, reject) => { + return new Promise((resolve) => { const snapshots = []; const rl = readline.createInterface({ input: fs.createReadStream(file),