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