Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Removed unneeded check (per feedback in 3cdaafc#commitcomment-24540628)
Browse files Browse the repository at this point in the history
Auditors: @NejcZdovc
  • Loading branch information
bsclifton committed Sep 26, 2017
1 parent e7e4365 commit 61d2f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/renderer/reducers/urlBarReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const updateUrlSuffix = (state, suggestionList, framePath) => {

if (autocompleteEnabled) {
const location = normalizeLocation(state.getIn(framePath.concat(['navbar', 'urlbar', 'location']))) || ''
const normalizedSuggestion = suggestion && suggestion.get && suggestion.get('location')
const normalizedSuggestion = suggestion.get && suggestion.get('location')
? normalizeLocation(suggestion.get('location').toLowerCase())
: ''
const index = normalizedSuggestion.indexOf(location.toLowerCase())
Expand Down

0 comments on commit 61d2f9b

Please sign in to comment.