Skip to content

Commit

Permalink
moved require statemnt to meet style guides
Browse files Browse the repository at this point in the history
  • Loading branch information
RaghuSauce committed Sep 18, 2019
1 parent f173469 commit 085cca0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/planner/write-plans-to-disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 085cca0

Please sign in to comment.