Skip to content

createTransformer contains duplicated code #321

@n9

Description

@n9

Once here:

if (typeof arg2 === "object") {
onCleanup = arg2.onCleanup
keepAlive = arg2.keepAlive !== undefined ? arg2.keepAlive : false
debugNameGenerator = arg2.debugNameGenerator
} else if (typeof arg2 === "function") {
onCleanup = arg2
}

Another here:

if (typeof arg2 === "object") {
onCleanup = arg2.onCleanup
debugNameGenerator = arg2.debugNameGenerator
computedValueOptions = arg2
} else if (typeof arg2 === "function") {
onCleanup = arg2
} else {
onCleanup = undefined
debugNameGenerator = undefined
}

887d928 and 43805db might be incorrectly merged in 9fac6ae.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions