Skip to content

Commit

Permalink
Move variable declaration up a level to ensure it exists later
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Oct 27, 2016
1 parent 986c916 commit 8bf302f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/isomorphic/html-styles.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { prefixLink } from './gatsby-helpers'

let stylesStr
if (process.env.NODE_ENV === `production`) {
let stylesStr
try {
stylesStr = require(`!raw!public/styles.css`)
} catch (e) {
Expand Down

0 comments on commit 8bf302f

Please sign in to comment.