From 8f4a23c36db93566acff428852216128550a30d9 Mon Sep 17 00:00:00 2001 From: chebuya <146861503+chebuya@users.noreply.github.com.> Date: Sun, 3 Nov 2024 13:55:33 -0700 Subject: [PATCH] Update displayer --- common/sastsweep/display.go | 2 +- common/sastsweep/downloader.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/sastsweep/display.go b/common/sastsweep/display.go index 84ba6b1..71f18a8 100644 --- a/common/sastsweep/display.go +++ b/common/sastsweep/display.go @@ -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))) } diff --git a/common/sastsweep/downloader.go b/common/sastsweep/downloader.go index 86f3d14..cc15dcd 100644 --- a/common/sastsweep/downloader.go +++ b/common/sastsweep/downloader.go @@ -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) }