Noticed on gitlab.com. In the commit section the discard button is not available for newly added empty files.
gitlab.com
20200402_ide_bug_cant_discard_new_empty_file