mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
chore: fix some comments (#3098)
This commit is contained in:
parent
ebfbd21707
commit
c4aab3fb51
3 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ runs:
|
||||||
## Scan by BASE & HEAD user inputs ##
|
## Scan by BASE & HEAD user inputs ##
|
||||||
## If BASE == HEAD, exit with error ##
|
## If BASE == HEAD, exit with error ##
|
||||||
##########################################
|
##########################################
|
||||||
git status >/dev/null # make sure we are in a git repostiory
|
git status >/dev/null # make sure we are in a git repository
|
||||||
if [ -n "$BASE" ] || [ -n "$HEAD" ]; then
|
if [ -n "$BASE" ] || [ -n "$HEAD" ]; then
|
||||||
if [ -n "$BASE" ]; then
|
if [ -n "$BASE" ]; then
|
||||||
base_commit=$(git rev-parse "$BASE" 2>/dev/null) || true
|
base_commit=$(git rev-parse "$BASE" 2>/dev/null) || true
|
||||||
|
|
|
@ -127,7 +127,7 @@ func (id DetectorID) String() string {
|
||||||
return fmt.Sprintf("%s.v%d", name, id.Version)
|
return fmt.Sprintf("%s.v%d", name, id.Version)
|
||||||
}
|
}
|
||||||
|
|
||||||
// allDetectors reutrns an ordered slice of all detector types.
|
// allDetectors returns an ordered slice of all detector types.
|
||||||
func allDetectors() []DetectorID {
|
func allDetectors() []DetectorID {
|
||||||
all := make([]DetectorID, 0, len(dpb.DetectorType_name))
|
all := make([]DetectorID, 0, len(dpb.DetectorType_name))
|
||||||
for id := range dpb.DetectorType_name {
|
for id := range dpb.DetectorType_name {
|
||||||
|
|
|
@ -245,7 +245,7 @@ func (s *SourceManager) preflightChecks(ctx context.Context) error {
|
||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
// run is a helper method to sychronously run the source. It does not check for
|
// run is a helper method to synchronously run the source. It does not check for
|
||||||
// acquired resources. An error is returned if there was a fatal error during
|
// acquired resources. An error is returned if there was a fatal error during
|
||||||
// the run. This information is also recorded in the JobProgress.
|
// the run. This information is also recorded in the JobProgress.
|
||||||
func (s *SourceManager) run(ctx context.Context, source Source, report *JobProgress, targets ...ChunkingTarget) error {
|
func (s *SourceManager) run(ctx context.Context, source Source, report *JobProgress, targets ...ChunkingTarget) error {
|
||||||
|
|
Loading…
Reference in a new issue