From 7143b8e59309a840d01675a0f582f49ea83acdb8 Mon Sep 17 00:00:00 2001 From: BSKY Date: Wed, 18 Mar 2020 07:34:57 +0900 Subject: [PATCH] eslint --fix --- __tests__/restore.test.ts | 1 + __tests__/save.test.ts | 1 + __tests__/tar.test.ts | 1 + src/cacheHttpClient.ts | 5 +++-- src/restore.ts | 1 + src/save.ts | 1 + 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/__tests__/restore.test.ts b/__tests__/restore.test.ts index 05fed55..212ec30 100644 --- a/__tests__/restore.test.ts +++ b/__tests__/restore.test.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "../src/cacheHttpClient"; import { Events, Inputs } from "../src/constants"; import { ArtifactCacheEntry } from "../src/contracts"; diff --git a/__tests__/save.test.ts b/__tests__/save.test.ts index 2c297bd..daab665 100644 --- a/__tests__/save.test.ts +++ b/__tests__/save.test.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "../src/cacheHttpClient"; import { Events, Inputs } from "../src/constants"; import { ArtifactCacheEntry } from "../src/contracts"; diff --git a/__tests__/tar.test.ts b/__tests__/tar.test.ts index 55ff4c7..c931471 100644 --- a/__tests__/tar.test.ts +++ b/__tests__/tar.test.ts @@ -1,5 +1,6 @@ import * as exec from "@actions/exec"; import * as io from "@actions/io"; + import * as tar from "../src/tar"; jest.mock("@actions/exec"); diff --git a/src/cacheHttpClient.ts b/src/cacheHttpClient.ts index 62ae2c1..90284d4 100644 --- a/src/cacheHttpClient.ts +++ b/src/cacheHttpClient.ts @@ -1,12 +1,13 @@ import * as core from "@actions/core"; -import * as fs from "fs"; -import { BearerCredentialHandler } from "@actions/http-client/auth"; import { HttpClient, HttpCodes } from "@actions/http-client"; +import { BearerCredentialHandler } from "@actions/http-client/auth"; import { IHttpClientResponse, IRequestOptions, ITypedResponse } from "@actions/http-client/interfaces"; +import * as fs from "fs"; + import { ArtifactCacheEntry, CommitCacheRequest, diff --git a/src/restore.ts b/src/restore.ts index f180c2b..721a8e3 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "./cacheHttpClient"; import { Events, Inputs, State } from "./constants"; import { extractTar } from "./tar"; diff --git a/src/save.ts b/src/save.ts index de03856..8cb5115 100644 --- a/src/save.ts +++ b/src/save.ts @@ -1,5 +1,6 @@ import * as core from "@actions/core"; import * as path from "path"; + import * as cacheHttpClient from "./cacheHttpClient"; import { Events, Inputs, State } from "./constants"; import { createTar } from "./tar";