Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs committed Nov 30, 2020
1 parent f66d1a4 commit e01f23f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/enterprise-server-deprecations/remove-static-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const supportedEnterpriseVersions = Object.values(allVersions).filter(v => v.pla

// webhooks and GraphQL
const supportedMiscVersions = supportedEnterpriseVersions.map(v => v.miscVersionName)
// The miscBaseName is the same for all GHES versions (currently `ghes-`), so we can just grab the first one
const miscBaseName = supportedEnterpriseVersions.map(v => v.miscBaseName)[0]

;[graphqlDataDir, graphqlStaticDir, webhooksStaticDir].forEach(dir => {
Expand All @@ -29,6 +30,7 @@ const miscBaseName = supportedEnterpriseVersions.map(v => v.miscBaseName)[0]

// REST
const supportedOpenApiVersions = supportedEnterpriseVersions.map(v => v.openApiVersionName)
// The openApiBaseName is the same for all GHES versions (currently `ghes-`), so we can just grab the first one
const openApiBaseName = supportedEnterpriseVersions.map(v => v.openApiBaseName)[0]

;[restDecoratedDir, restDereferencedDir].forEach(dir => {
Expand Down

0 comments on commit e01f23f

Please sign in to comment.