Skip to content

Commit

Permalink
Fixing wrong return type
Browse files Browse the repository at this point in the history
  • Loading branch information
simsekgokhan committed Jun 14, 2017
1 parent ff5d705 commit 36dbc07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/robomongo/core/settings/SettingsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,17 +721,17 @@ namespace Robomongo
QString extractAnonymousID(QString const& oldConfigFilePath)
{
if (!QFile::exists(oldConfigFilePath))
return false;
return QString("");

QFile oldConfigFile(oldConfigFilePath);
if (!oldConfigFile.open(QIODevice::ReadOnly))
return false;
return QString("");

bool ok = false;
QJson::Parser parser;
QVariantMap const& map = parser.parse(oldConfigFile.readAll(), &ok).toMap();
if (!ok)
return false;
return QString("");

QString anonymousID;
if (map.contains("anonymousID")) {
Expand Down

0 comments on commit 36dbc07

Please sign in to comment.