Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle nil file channel #417

Merged
merged 1 commit into from
Apr 16, 2022
Merged

Handle nil file channel #417

merged 1 commit into from
Apr 16, 2022

Conversation

dustin-decker
Copy link
Contributor

Parser can return a nil channel and nil error under some conditions

@@ -272,6 +272,10 @@ func (s *Git) ScanCommits(repo *git.Repository, path string, scanOptions *ScanOp
if err != nil {
return errors.WrapPrefix(err, "could not open repo path", 0)
}
// parser can return nil chan and nil error
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Capitalize and period.

Copy link
Collaborator

@ahrav ahrav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dustin-decker dustin-decker merged commit 879e65b into main Apr 16, 2022
@dustin-decker dustin-decker deleted the git-npe-fix branch April 16, 2022 22:41
bill-rich pushed a commit that referenced this pull request May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants