Fix linters

This commit is contained in:
Daniel Kennedy
2026-02-24 11:22:39 -05:00
parent 42ecbbbdb4
commit 5e583a8e00
4 changed files with 9 additions and 9 deletions
@@ -391,7 +391,6 @@ describe('upload-artifact', () => {
.mockRestore() .mockRestore()
const singleFile = path.join(fixtures.uploadDirectory, 'file1.txt') const singleFile = path.join(fixtures.uploadDirectory, 'file1.txt')
const expectedFileName = 'file1.txt'
const expectedContent = 'test 1 file content' const expectedContent = 'test 1 file content'
jest jest
@@ -35,7 +35,9 @@ export async function createRawFileUploadStream(
} }
// Create a read stream from the file and pipe it to the upload stream // Create a read stream from the file and pipe it to the upload stream
const fileStream = fs.createReadStream(sourcePath, {highWaterMark: bufferSize}) const fileStream = fs.createReadStream(sourcePath, {
highWaterMark: bufferSize
})
fileStream.on('error', error => { fileStream.on('error', error => {
core.error('An error has occurred while reading the file for upload') core.error('An error has occurred while reading the file for upload')
@@ -1,4 +1,3 @@
import * as stream from 'stream'
import {realpath} from 'fs/promises' import {realpath} from 'fs/promises'
import archiver from 'archiver' import archiver from 'archiver'
import * as core from '@actions/core' import * as core from '@actions/core'