Add Early Return
This commit is contained in:
parent
50c8733162
commit
75fde4863d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user