Add Early Return

This commit is contained in:
Matti 2024-11-12 10:19:48 +01:00
parent 50c8733162
commit 75fde4863d

View File

@ -68,6 +68,7 @@ void readContactsFromFile(std::vector<Kontaktdaten*> *Telefonbuch, std::string *
if (!infile.is_open()) { if (!infile.is_open()) {
std::cout << "File does not exist" << std::endl; std::cout << "File does not exist" << std::endl;
return;
} }
std::string line; std::string line;