Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jan 18, 2023
1 parent 8398b50 commit ad7e7f6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,11 @@ export async function run(): Promise<void> {

const pathsOutput = paths.join(separator)

const hasCustomPatterns = (
files !== '' ||
filesFromSourceFile !== '' ||
excludedFiles !== '' ||
excludedFilesFromSourceFile !== ''
)
const hasCustomPatterns =
files !== '' ||
filesFromSourceFile !== '' ||
excludedFiles !== '' ||
excludedFilesFromSourceFile !== ''

if (pathsOutput) {
const pathsOutputFile = await tempfile('.txt')
Expand All @@ -278,7 +277,7 @@ export async function run(): Promise<void> {
core.saveState('paths-output-file', pathsOutputFile)
core.info(`Successfully created paths-output-file: ${pathsOutputFile}`)
} else if (hasCustomPatterns) {
core.warning("No paths found using the specified patterns")
core.warning('No paths found using the specified patterns')
}

core.setOutput('paths', pathsOutput)
Expand Down

0 comments on commit ad7e7f6

Please sign in to comment.