[Fix] Removes unnecessary check for regular files.