Skip to content

Commit 9b59391

Browse files
committed
Remove useless method
1 parent abf3f82 commit 9b59391

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/packageModules.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function getFileContentAndStat(directory, filePath) {
8484

8585
return BbPromise.all([
8686
// Get file contents and stat in parallel
87-
getFileContent(fullPath),
87+
fs.readFileAsync(fullPath),
8888
fs.statAsync(fullPath)
8989
]).then(
9090
result => ({
@@ -101,15 +101,6 @@ function getFileContentAndStat(directory, filePath) {
101101
);
102102
}
103103

104-
/**
105-
* Copy pasted from Serverless
106-
*
107-
* @see https://github.com/serverless/serverless/blob/63d54e1537e10ae63c171892edd886f6b81e83f6/lib/plugins/package/lib/zipService.js#L135
108-
*/
109-
function getFileContent(fullPath) {
110-
return fs.readFileAsync(fullPath);
111-
}
112-
113104
function zip(directory, zipFileName) {
114105
// Check that files exist to be zipped
115106
let files = glob.sync('**', {

0 commit comments

Comments
 (0)