From 8d8df37e3515bbfaf4e6fb84cdef1dff1f534ccd Mon Sep 17 00:00:00 2001 From: Ruslan Kaniuk Date: Fri, 1 Feb 2019 10:43:53 +0200 Subject: [PATCH] Update minipack.js Change the parameter name for function `createAsset` according to previuos description and semantic concept of `fs.readFileSync`. --- src/minipack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/minipack.js b/src/minipack.js index ceecb73..0e883d2 100644 --- a/src/minipack.js +++ b/src/minipack.js @@ -36,7 +36,7 @@ let ID = 0; // We start by creating a function that will accept a path to a file, read // its contents, and extract its dependencies. -function createAsset(filename) { +function createAsset(filePath) { // Read the content of the file as a string. const content = fs.readFileSync(filename, 'utf-8');