Skip to content

Commit

Permalink
correct fallback branch
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Oct 29, 2021
1 parent 92dfac2 commit a712b43
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async function getUsersDeprecations(
}

// TODO: remove when docs support "main"
const docsBranch = packageInfo.branch === 'main' ? 'master' : 'main';
const docsBranch = packageInfo.branch === 'main' ? 'master' : packageInfo.branch;

return [
{
Expand Down Expand Up @@ -163,7 +163,7 @@ async function getRoleMappingsDeprecations(
}

// TODO: remove when docs support "main"
const docsBranch = packageInfo.branch === 'main' ? 'master' : 'main';
const docsBranch = packageInfo.branch === 'main' ? 'master' : packageInfo.branch;

return [
{
Expand Down Expand Up @@ -200,7 +200,7 @@ function deprecationError(packageInfo: PackageInfo, error: Error): DeprecationsD
const title = getDeprecationTitle();

// TODO: remove when docs support "main"
const docsBranch = packageInfo.branch === 'main' ? 'master' : 'main';
const docsBranch = packageInfo.branch === 'main' ? 'master' : packageInfo.branch;

if (getErrorStatusCode(error) === 403) {
return [
Expand Down

0 comments on commit a712b43

Please sign in to comment.