Skip to content

Commit 36dbc07

Browse files
committed
Fixing wrong return type
1 parent ff5d705 commit 36dbc07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/robomongo/core/settings/SettingsManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,17 +721,17 @@ namespace Robomongo
721721
QString extractAnonymousID(QString const& oldConfigFilePath)
722722
{
723723
if (!QFile::exists(oldConfigFilePath))
724-
return false;
724+
return QString("");
725725

726726
QFile oldConfigFile(oldConfigFilePath);
727727
if (!oldConfigFile.open(QIODevice::ReadOnly))
728-
return false;
728+
return QString("");
729729

730730
bool ok = false;
731731
QJson::Parser parser;
732732
QVariantMap const& map = parser.parse(oldConfigFile.readAll(), &ok).toMap();
733733
if (!ok)
734-
return false;
734+
return QString("");
735735

736736
QString anonymousID;
737737
if (map.contains("anonymousID")) {

0 commit comments

Comments
 (0)