Skip to content

Commit

Permalink
Remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
varjolintu committed Jul 11, 2018
1 parent 604537e commit e8d9be1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/browser/BrowserService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,9 @@ QList<Entry*> BrowserService::searchEntries(Database* db, const QString& hostnam
QUrl entryQUrl(entryUrl);
QString entryScheme = entryQUrl.scheme();
QUrl qUrl(url);
QString scheme = qUrl.scheme();

// Ignore entry if port or scheme defined in the URL doesn't match
if ((entryQUrl.port() > 0 && entryQUrl.port() != qUrl.port()) || entryScheme.compare(scheme) != 0) {
if ((entryQUrl.port() > 0 && entryQUrl.port() != qUrl.port()) || entryScheme.compare(qUrl.scheme()) != 0) {
continue;
}

Expand Down

0 comments on commit e8d9be1

Please sign in to comment.