Skip to content

Commit

Permalink
typo (#510)
Browse files Browse the repository at this point in the history
Co-authored-by: 5saviahv <[email protected]>
  • Loading branch information
5saviahv and 5saviahv authored Jun 23, 2024
1 parent 6a10d2d commit f82dacf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion adm-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ module.exports = function (/**String*/ input, /** object */ options) {
// instanciate utils filesystem
const filetools = new Utils(opts);

opts.decoder = Utils.decoder;
if (typeof opts.decoder !== "object" || typeof opts.decoder.encode !== "function" || typeof opts.decoder.decode !== "function") {
opts.decoder = Utils.decoder;
}
Expand Down
4 changes: 2 additions & 2 deletions zipEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ module.exports = function (/** object */ options, /*Buffer*/ input) {
},

packCentralHeader: function () {
_centralHeader.flag_efs = this.efs;
_centralHeader.flags_efs = this.efs;
// 1. create header (buffer)
var header = _centralHeader.centralHeaderToBinary();
var addpos = Utils.Constants.CENHDR;
Expand All @@ -360,7 +360,7 @@ module.exports = function (/** object */ options, /*Buffer*/ input) {

packLocalHeader: function () {
let addpos = 0;

_centralHeader.flags_efs = this.efs;
// 1. construct local header Buffer
const localHeaderBuf = _centralHeader.localHeaderToBinary();
// 2. localHeader - crate header buffer
Expand Down

0 comments on commit f82dacf

Please sign in to comment.