From 983137fc2b75f4352723a9e20bc181b80066acbe Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 8 Apr 2019 17:34:35 +0300 Subject: [PATCH] lib/generateElement.js: Move require to the top. (#249) --- lib/generateElement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generateElement.js b/lib/generateElement.js index e4cd92d2..7a5c2cca 100644 --- a/lib/generateElement.js +++ b/lib/generateElement.js @@ -4,6 +4,8 @@ 'use strict'; +const generate = require('./generate'); + /** * Wrap SRI data for resourceUrl in a script tag * @@ -13,8 +15,6 @@ * @param {Function} cb - callback */ -const generate = require('./generate'); - const generateElement = (resourceUrl, algorithms, cb) => { const options = { url: resourceUrl,