From 085cca03f6de490175665d5835a238daa214367c Mon Sep 17 00:00:00 2001 From: Dantuluri Date: Wed, 18 Sep 2019 10:52:22 -0400 Subject: [PATCH] moved require statemnt to meet style guides --- lib/planner/write-plans-to-disk.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/planner/write-plans-to-disk.js b/lib/planner/write-plans-to-disk.js index 31156c22..324947af 100644 --- a/lib/planner/write-plans-to-disk.js +++ b/lib/planner/write-plans-to-disk.js @@ -3,12 +3,11 @@ const fs = require('fs'); const path = require('path'); const configHandler = require('../util/config/config-handler.js'); - +const crypto = require('crypto'); module.exports = function writePlansToDisk(plans) { const outputPath = configHandler.get('outputPath'); for (let plan of plans) { - const crypto = require('crypto'); const sha256 = (x) => crypto.createHash('sha256').update(x, 'utf8').digest('hex'); let testName = `simulato`+`--${sha256(plan.toString())}.json`; let filePath = path.resolve(outputPath, testName);