Skip to content

insert_into_file print warning when change is already done #706

@nicolas-brousse

Description

@nicolas-brousse

If I use append_file or insert_into_file in a generator, and I execute generator twice, then File unchanged! The supplied flag value not found! warning is printed.

Is this the expected behavior. It sounds curious to me. Why doesn't it print identical or unchanged without warning, since content.include?(replacement) returns true?

Related to #683

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions