Skip to content

Commit

Permalink
Update displayer
Browse files Browse the repository at this point in the history
  • Loading branch information
chebuya committed Nov 3, 2024
1 parent ac7ca12 commit 8f4a23c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion common/sastsweep/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func DisplayRepoInfo(options *common.Options, repoInfo RepoInfo) {
colored(fmt.Sprintf("[last release=%s] ", repoInfo.LastRelease.Format(dateStr)))
}

if options.LastCommit && !repoInfo.LastCommit.IsZero() {
if options.LastCommit {
colored(fmt.Sprintf("[last commit=%s] ", repoInfo.LastCommit.Format(dateStr)))
}

Expand Down
2 changes: 0 additions & 2 deletions common/sastsweep/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ func DownloadSource(client *http.Client, targetURL string, branch string, outDir
return "", errors.New("download path outside of output directory")
}

logger.Debug("Checking if " + outPath + " exists")
if _, err := os.Stat(outPath); err == nil {
logger.Debug(outPath + " DOES exist, removing...")
os.RemoveAll(outPath)
os.Exit(1)
}
Expand Down

0 comments on commit 8f4a23c

Please sign in to comment.