Skip to content

Commit 92a8c81

Browse files
committed
fix(preprocessor): renamed handeFile to readFileCallback
1 parent 2789bf5 commit 92a8c81

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/preprocessor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ var createPreprocessor = function (config, basePath, injector) {
7777
patterns = Object.keys(config)
7878
var retryCount = 0
7979
var maxRetries = 3
80-
function handleFile (err, buffer) {
80+
function readFileCallback (err, buffer) {
8181
if (err) {
8282
log.warn(err)
8383
if (retryCount < maxRetries) {
8484
retryCount++
8585
log.warn('retrying ' + retryCount)
86-
fs.readFile(file.originalPath, handleFile)
86+
fs.readFile(file.originalPath, readFileCallback)
8787
return
8888
} else {
8989
throw err
@@ -131,7 +131,7 @@ var createPreprocessor = function (config, basePath, injector) {
131131
nextPreprocessor(null, thisFileIsBinary ? buffer : buffer.toString())
132132
})
133133
}
134-
return fs.readFile(file.originalPath, handleFile)
134+
return fs.readFile(file.originalPath, readFileCallback)
135135
}
136136
}
137137
createPreprocessor.$inject = ['config.preprocessors', 'config.basePath', 'injector']

0 commit comments

Comments
 (0)