refactor discardChanges
refactor discardChanges

There is no need to have a string or an array. I’m also checking if there is exactly one file because we want to do what we did before (not fallback to discard all changes)

kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,desktop/desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop