file module f4b59fe285b436dbcbc3b83982408313c97a2e7a

Hi

I came across a code block, which makes no sense to me (yet):

It was introduced with this commit
https://github.com/ansible/ansible/commit/f4b59fe285b436dbcbc3b83982408313c97a2e7a

Line 187-197

    if prev_state is not None and state is None

prev_state seems never be “None” as it is defaulted to

    prev_state = 'absent'

on Line 174.

Maybe a leftover of the fix.

Yours
René


Are you seeing a particular problem?

Most likely that’s cruft left over from a bug fix or enhancement. If you can verify logically that would never be hit, feel free to send a pull request to clean it up.