From f6ded38287437661b636a27f136e14b1b2e46064 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Thu, 28 Mar 2024 13:49:50 -0500 Subject: [PATCH] Fix syntax error and formatting --- src/api-client.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/api-client.js b/src/api-client.js index c85897c..9e61e0c 100644 --- a/src/api-client.js +++ b/src/api-client.js @@ -49,20 +49,15 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) { ) throw error } - core.warning( - `Get Pages site failed. Error: ${error.message}`, - convertErrorToAnnotationProperties(error) - ) + core.warning(`Get Pages site failed. Error: ${error.message}`, convertErrorToAnnotationProperties(error)) + } if (!pageObject && enablement) { // Create a new Pages site if one doesn't exist try { pageObject = await enablePagesSite({ githubToken }) } catch (error) { - core.error( - `Create Pages site failed. Error: ${error.message}`, - convertErrorToAnnotationProperties(error) - ) + core.error(`Create Pages site failed. Error: ${error.message}`, convertErrorToAnnotationProperties(error)) throw error } @@ -72,10 +67,7 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) { try { pageObject = await getPagesSite({ githubToken }) } catch (error) { - core.error( - `Get Pages site still failed. Error: ${error.message}`, - convertErrorToAnnotationProperties(error) - ) + core.error(`Get Pages site still failed. Error: ${error.message}`, convertErrorToAnnotationProperties(error)) throw error } }