From 16f95dd59b55527bd72a89917659664dda06b3b2 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Thu, 31 Mar 2022 07:10:51 +0530 Subject: [PATCH] linting --- __tests__/util.test.ts | 3 +-- src/util.ts | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/__tests__/util.test.ts b/__tests__/util.test.ts index d1bfdedf..9815c950 100644 --- a/__tests__/util.test.ts +++ b/__tests__/util.test.ts @@ -45,8 +45,7 @@ describe('isCacheFeatureAvailable', () => { it('isCacheFeatureAvailable disabled on dotcom', () => { jest.spyOn(cache, 'isFeatureAvailable').mockImplementation(() => false); const infoMock = jest.spyOn(core, 'warning'); - const message = - 'The runner was not able to contact the cache service. Caching will be skipped'; + const message = 'The runner was not able to contact the cache service. Caching will be skipped'; try { process.env['GITHUB_SERVER_URL'] = 'http://github.com'; expect(isCacheFeatureAvailable()).toBe(false); diff --git a/src/util.ts b/src/util.ts index 30840ba5..10f18c5f 100644 --- a/src/util.ts +++ b/src/util.ts @@ -91,9 +91,7 @@ export function isCacheFeatureAvailable(): boolean { 'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.' ); } else { - core.warning( - 'The runner was not able to contact the cache service. Caching will be skipped' - ); + core.warning('The runner was not able to contact the cache service. Caching will be skipped'); } return false;