Skip to content

Commit

Permalink
add skipResourcesMutex
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanochShayner committed Jun 10, 2024
1 parent 7a1d930 commit 204d0c7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/common/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ type Runner struct {

const WorkersNumEnvKey = "YOR_WORKER_NUM"

var skipResourcesMutex sync.Mutex
var skipResourcesCheckMutex sync.Mutex

func (r *Runner) Init(commands *clioptions.TagOptions) error {
dir := commands.Directory
extraTags, extraTagGroups, err := loadExternalResources(commands.CustomTagging)
Expand Down Expand Up @@ -189,12 +186,6 @@ func (r *Runner) TagFile(file string) {
logger.Info(fmt.Sprintf("Failed to parse file %v with parser %v", file, reflect.TypeOf(parser)))
continue
}
//skipResourcesMutex.Lock()
//if r.skippedResources == nil {
// r.skippedResources = []string{}
//}
//r.skippedResources = append(r.skippedResources, skipResourcesByComment...)
//skipResourcesMutex.Unlock()
isFileTaggable := false
for _, block := range blocks {
if r.isSkippedResourceType(block.GetResourceType()) {
Expand Down

0 comments on commit 204d0c7

Please sign in to comment.