From 0fab691e6f43393b20fc87450dedcad07e76a4e1 Mon Sep 17 00:00:00 2001 From: Milan Pavlik Date: Sat, 7 May 2016 14:09:37 -0700 Subject: [PATCH] Remove default argument syntax on getVersionedGithubPath() Summary: Removes ES6 syntax of default arguments to fix website building as per #7434. [More info](https://github.com/facebook/react-native/pull/7434). Closes https://github.com/facebook/react-native/pull/7439 Differential Revision: D3274206 fb-gh-sync-id: 3a8f5950ead91cf59c27fd384e97bf9587005398 fbshipit-source-id: 3a8f5950ead91cf59c27fd384e97bf9587005398 --- website/core/HeaderWithGithub.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/core/HeaderWithGithub.js b/website/core/HeaderWithGithub.js index f39598889..601051c7e 100644 --- a/website/core/HeaderWithGithub.js +++ b/website/core/HeaderWithGithub.js @@ -12,12 +12,13 @@ var H = require('Header'); var React = require('React'); -function getVersionedGithubPath(path, version='next') { +function getVersionedGithubPath(path, version) { + version = version || 'next'; return [ 'https://github.com/facebook/react-native/blob', version === 'next' ? 'master' : version + '-stable', path - ].join('/') + ].join('/'); } var HeaderWithGithub = React.createClass({