mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-09 00:26:08 +00:00
Remove unnecessary try/catch
This commit is contained in:
@@ -33,7 +33,6 @@ async function enablePagesSite({ repositoryNwo, githubToken }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getPagesSite({ repositoryNwo, githubToken }) {
|
async function getPagesSite({ repositoryNwo, githubToken }) {
|
||||||
try {
|
|
||||||
const pagesEndpoint = `${getApiBaseUrl()}/repos/${repositoryNwo}/pages`
|
const pagesEndpoint = `${getApiBaseUrl()}/repos/${repositoryNwo}/pages`
|
||||||
|
|
||||||
const response = await axios.get(pagesEndpoint, {
|
const response = await axios.get(pagesEndpoint, {
|
||||||
@@ -45,9 +44,6 @@ async function getPagesSite({ repositoryNwo, githubToken }) {
|
|||||||
|
|
||||||
const pageObject = response.data
|
const pageObject = response.data
|
||||||
return pageObject
|
return pageObject
|
||||||
} catch (error) {
|
|
||||||
throw error
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function findOrCreatePagesSite({ repositoryNwo, githubToken, enablement = true }) {
|
async function findOrCreatePagesSite({ repositoryNwo, githubToken, enablement = true }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user