Skip to content

Commit 196063f

Browse files
committed
Fix import order, pointed out by ESLint
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7b91063 commit 196063f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

__tests__/downloader.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import fetch from 'node-fetch'
12
import {get} from '../src/downloader'
23
import {mocked} from 'ts-jest/utils'
3-
import fetch from 'node-fetch'
44

55
const buildIdResponse = {
66
count: 1,

__tests__/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-disable no-console */
2-
import {statSync} from 'fs'
3-
import * as process from 'process'
42
import * as child_process from 'child_process'
53
import * as path from 'path'
4+
import * as process from 'process'
5+
import {statSync} from 'fs'
66

77
async function runAction(
88
options?: child_process.SpawnOptionsWithoutStdio

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as core from '@actions/core'
2-
import process from 'process'
3-
import {get} from './src/downloader'
42
import {restoreCache, saveCache} from '@actions/cache'
3+
import {get} from './src/downloader'
4+
import process from 'process'
55

66
async function run(): Promise<void> {
77
try {

src/downloader.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import fs from 'fs'
2-
import https from 'https'
31
import {Readable} from 'stream'
4-
import unzipper from 'unzipper'
5-
import {spawn} from 'child_process'
62
import {delimiter} from 'path'
73
import fetch from '@adobe/node-fetch-retry'
4+
import fs from 'fs'
5+
import https from 'https'
6+
import {spawn} from 'child_process'
7+
import unzipper from 'unzipper'
88

99
const gitForWindowsUsrBinPath = 'C:/Program Files/Git/usr/bin'
1010
const gitForWindowsMINGW64BinPath = 'C:/Program Files/Git/mingw64/bin'

0 commit comments

Comments
 (0)