Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
lib/generateElement.js: Move require to the top. (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 8, 2019
1 parent f4f5200 commit 983137f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generateElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

'use strict';

const generate = require('./generate');

/**
* Wrap SRI data for resourceUrl in a script tag
*
Expand All @@ -13,8 +15,6 @@
* @param {Function} cb - callback
*/

const generate = require('./generate');

const generateElement = (resourceUrl, algorithms, cb) => {
const options = {
url: resourceUrl,
Expand Down

0 comments on commit 983137f

Please sign in to comment.