Malformed entry in Ubuntu 19.04


I’ve been installing mongo but something has gone wrong and the packages are no longer updating – only the following error appears

E: Malformed entry 1 in list file /etc/apt/sources.list.d/ mongodb-org-4.2.list ([option] not assignment)  E: The source list could not be read. 

How do I solve this?