Skip to content

Commit

Permalink
remove Unsupported Method check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Feb 6, 2018
1 parent 3d1a294 commit 2528ee0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions lib/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ module.exports = function(archive, dest, options) {
.progress(function(data) {

var entries = [];
var isUnsupportedMethod = (data.search('Unsupported Method'))
? true
: false;
if (isUnsupportedMethod) {
return reject(new Error('Unsupported Method'))
}
// var isUnsupportedMethod = (data.search('Unsupported Method'))
// ? true
// : false;
// if (isUnsupportedMethod) {
// return reject(new Error('Unsupported Method'))
//}

data.split('\n').forEach(function (line) {
if (line.substr(0, 12) === 'Extracting ') {
Expand Down
14 changes: 7 additions & 7 deletions lib/extractFull.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ module.exports = function(archive, dest, options) {
// Also check if a file is extracted using an Unsupported Method of 7-Zip.
.progress(function(data) {

var entries = [];
var isUnsupportedMethod = (data.search('Unsupported Method'))
? true
: false;
if (isUnsupportedMethod) {
console.log(new Error('Unsupported Method'));
}
// var entries = [];
// var isUnsupportedMethod = (data.search('Unsupported Method'))
// ? true
// : false;
// if (isUnsupportedMethod) {
// console.log(new Error('Unsupported Method'));
// }

var entries = [];
data.split('\n').forEach(function(line) {
Expand Down

0 comments on commit 2528ee0

Please sign in to comment.