Skip to content

Commit ed938dc

Browse files
authored
Report usage should run only if there is rt url (#191)
1 parent e3b1948 commit ed938dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/commands/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func reportUsage(command Command, channel chan<- bool) {
4242
log.Debug(usage.ReportUsagePrefix + err.Error())
4343
return
4444
}
45-
if serverDetails != nil {
45+
if serverDetails != nil && serverDetails.ArtifactoryUrl != "" {
4646
log.Debug(usage.ReportUsagePrefix + "Sending info...")
4747
serviceManager, err := utils.CreateServiceManager(serverDetails, -1, false)
4848
if err != nil {

0 commit comments

Comments
 (0)