Skip to content

Possible dead code #172

@sosoba

Description

@sosoba

if (opts.typeflag === 5 && name[name.length - 1] !== '/') name += '/'

It seems that this condition will never be met because the Pack class never sets the typeflag attribute. Perhaps the condition should look like this:

if (opts.type === 'directory' && name[name.length - 1] !== '/') name += '/' 

or this code should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions