Skip to content

Commit

Permalink
remove adding new variable
Browse files Browse the repository at this point in the history
  • Loading branch information
calcsam committed Jan 11, 2018
1 parent 011cdc3 commit 74541ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/gatsby-react-router-scroll/src/StateStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export default class SessionStorage {
}

getStateKey(location, key) {
const locationPath = location.pathname
const stateKeyBase = `${STATE_KEY_PREFIX}${locationPath}`
const stateKeyBase = `${STATE_KEY_PREFIX}${location.pathname}`
return key === null || typeof key === `undefined`
? stateKeyBase
: `${stateKeyBase}|${key}`
Expand Down

0 comments on commit 74541ad

Please sign in to comment.