Skip to content

Commit

Permalink
style: import destructuring (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Sep 20, 2022
1 parent 8ee7d00 commit 80e4748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const fs = require("fs");
const path = require("upath");
const semver = require("semver");
const { execFile, spawn } = require("child_process");
const util = require("util");
const { promisify } = require("util");

const execFileAsync = util.promisify(execFile);
const execFileAsync = promisify(execFile);

/**
* @author Frazer Smith
Expand Down
4 changes: 2 additions & 2 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const isHtml = require("is-html");
const path = require("upath");
const semver = require("semver");
const { execFile } = require("child_process");
const util = require("util");
const { promisify } = require("util");

const execFileAsync = util.promisify(execFile);
const execFileAsync = promisify(execFile);
const { UnRTF } = require("./index");

const testDirectory = `${__dirname}/../test_files/`;
Expand Down

0 comments on commit 80e4748

Please sign in to comment.