Skip to content

Find, verify, and analyze leaked credentials

fix(portainertoken): remove stray fmt.Printf on invalid URL (#5334)

Shadow676648b58d3bf3f0
diff --git a/pkg/detectors/portainertoken/portainertoken.go b/pkg/detectors/portainertoken/portainertoken.go
index 2f706141f..1895d1d69 100644
--- a/pkg/detectors/portainertoken/portainertoken.go
+++ b/pkg/detectors/portainertoken/portainertoken.go
@@ -48,7 +48,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
u, err := detectors.ParseURLAndStripPathAndParams(resEndpointMatch)
if err != nil {
- fmt.Printf("\nINVALID URL\n")
// if the URL is invalid just move onto the next one
continue
}