Skip to content

Commit

Permalink
skip import check
Browse files Browse the repository at this point in the history
  • Loading branch information
kkHAIKE committed Aug 27, 2022
1 parent 6a615a9 commit a2c3e11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contextcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func NewRun(pkgs []*packages.Package, disableFact bool) func(pass *analysis.Pass
}
return func(pass *analysis.Pass) (interface{}, error) {
// skip different repo
if !m[strings.Split(pass.Pkg.Path(), "/")[0]] {
if len(m) > 0 && !m[strings.Split(pass.Pkg.Path(), "/")[0]] {
return nil, nil
}

Expand Down Expand Up @@ -221,9 +221,9 @@ func (r *runner) noImportedContextAndHttp(f *ssa.Function) (ret bool) {
}

func (r *runner) checkIsEntry(f *ssa.Function) entryType {
if r.noImportedContextAndHttp(f) {
return EntryNormal
}
// if r.noImportedContextAndHttp(f) {
// return EntryNormal
// }

ctxIn, ctxOut := r.checkIsCtx(f)
if ctxOut {
Expand Down

0 comments on commit a2c3e11

Please sign in to comment.