Remove extra variable (#8329)

This commit is contained in:
Tim Neutkens 2019-08-12 02:38:42 +02:00 committed by Joe Haddad
parent 36aabe05a2
commit 35e7b21df1

View file

@ -10,7 +10,6 @@ export function isInAmpMode({
}
export function useAmp() {
const ampState = React.useContext(AmpStateContext)
// un-comment below to not be considered AMP in dirty mode
return isInAmpMode(ampState) // && ampMode.hasQuery
// Don't assign the context value to a variable to save bytes
return isInAmpMode(React.useContext(AmpStateContext))
}