Skip to content

Commit

Permalink
chore: fix some comments (#3098)
Browse files Browse the repository at this point in the history
  • Loading branch information
shangchenglumetro authored Jul 25, 2024
1 parent ebfbd21 commit c4aab3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
## Scan by BASE & HEAD user inputs ##
## 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" ]; then
base_commit=$(git rev-parse "$BASE" 2>/dev/null) || true
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/detectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (id DetectorID) String() string {
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 {
all := make([]DetectorID, 0, len(dpb.DetectorType_name))
for id := range dpb.DetectorType_name {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/source_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (s *SourceManager) preflightChecks(ctx context.Context) error {
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
// the run. This information is also recorded in the JobProgress.
func (s *SourceManager) run(ctx context.Context, source Source, report *JobProgress, targets ...ChunkingTarget) error {
Expand Down

0 comments on commit c4aab3f

Please sign in to comment.