mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 03:39:08 +08:00
lint
This commit is contained in:
parent
4cce91d01c
commit
a89208769e
@ -104,7 +104,7 @@ export class DefaultGlobber implements Globber {
|
||||
|
||||
// Search
|
||||
const traversalChain: string[] = [] // used to detect cycles
|
||||
let loggedFirstHiddenMessage: boolean = false // if printing hidden, is this the first one
|
||||
let loggedFirstHiddenMessage = false // if printing hidden, is this the first one
|
||||
while (stack.length) {
|
||||
// Pop
|
||||
const item = stack.pop() as SearchState
|
||||
@ -131,7 +131,7 @@ export class DefaultGlobber implements Globber {
|
||||
|
||||
// Hidden file or directory?
|
||||
if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) {
|
||||
if(!loggedFirstHiddenMessage) {
|
||||
if (!loggedFirstHiddenMessage) {
|
||||
core.info(`Ignoring the following hidden files and directories`)
|
||||
loggedFirstHiddenMessage = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user