Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 8eb2d2f

Browse files
authored
Merge pull request #139 from shazron/javafix
Fixes 'Unable to read handler file in function' error for Java runtime
2 parents 2e4d641 + 429344e commit 8eb2d2f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

compile/functions/runtimes/java.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ class Java extends BaseRuntime {
3434
// Ensure zip package used to deploy action has the correct artifacts for the runtime by only
3535
// including the deployable JAR file.
3636
processActionPackage(handlerFile, zip) {
37-
return zip
38-
.file(handlerFile)
39-
.async('nodebuffer')
40-
.then(data => {
41-
const readFile = BbPromise.promisify(fs.readFile);
42-
return readFile(handlerFile).then(zipBuffer => JSZip.loadAsync(zipBuffer));
43-
});
37+
return zip;
4438
}
4539
}
4640

0 commit comments

Comments
 (0)