@@ -77,7 +77,7 @@ func (a *AnalyzeVelero) veleroStatus(analyzer *troubleshootv1beta2.VeleroAnalyze
77
77
restoreCount = 1
78
78
}
79
79
80
- if oldVeleroRepoType == true {
80
+ if oldVeleroRepoType {
81
81
// old velero (v1.9.x) has a BackupRepositoryTypeRestic
82
82
// get resticrepositories.velero.io
83
83
resticRepositoriesDir := GetVeleroResticRepositoriesDirectory ()
@@ -284,7 +284,7 @@ func (a *AnalyzeVelero) veleroStatus(analyzer *troubleshootv1beta2.VeleroAnalyze
284
284
}
285
285
286
286
veleroLogsGlob := filepath .Join (logsDir , "velero*" , "*.log" )
287
- veleroLogs , err := findFiles (veleroLogsGlob , excludeFiles )
287
+ veleroLogs , _ := findFiles (veleroLogsGlob , excludeFiles )
288
288
289
289
results = append (results , analyzeLogs (nodeAgentlogs , "node-agent*" )... )
290
290
results = append (results , analyzeLogs (veleroLogs , "velero*" )... )
@@ -666,14 +666,14 @@ func aggregateResults(results []*AnalyzeResult) []*AnalyzeResult {
666
666
out = append (out , result )
667
667
}
668
668
if len (results ) > 0 {
669
- if resultFailed == false {
669
+ if ! resultFailed {
670
670
out = append (out , & AnalyzeResult {
671
671
Title : "Velero Status" ,
672
672
IsPass : true ,
673
673
Message : "Velero setup is healthy" ,
674
674
})
675
675
}
676
- if resultFailed == true {
676
+ if resultFailed {
677
677
out = append (out , & AnalyzeResult {
678
678
Title : "Velero Status" ,
679
679
IsWarn : true ,
0 commit comments