Fix various minor mistakes

This commit is contained in:
Bryan Ashby 2019-11-08 19:20:14 -07:00
parent 351ae52776
commit c9ff904b2b
No known key found for this signature in database
GPG key ID: B49EB437951D2542
7 changed files with 17 additions and 18 deletions

View file

@ -401,7 +401,7 @@ function extractAndProcessDescFiles(fileEntry, filePath, archiveEntries, cb) {
//
// :TODO: This isn't really always the case - how to handle this? We could do a quick detection...
const decodedData = iconv.decode(data, 'cp437');
fileEntry[descType] = sliceAtSauceMarker(decodedData, 0x1a);
fileEntry[descType] = sliceAtSauceMarker(decodedData);
fileEntry[`${descType}Src`] = 'descFile';
return next(null);
});
@ -575,7 +575,7 @@ function populateFileEntryInfoFromFile(fileEntry, filePath, cb) {
`${_.upperFirst(descType)} description command failed`
);
} else {
stdout = (stdout || '').trim();
stdout = stdout.trim();
if(stdout.length > 0) {
const key = 'short' === descType ? 'desc' : 'descLong';
if('desc' === key) {