Skip to content

Commit ef8d267

Browse files
committed
style fixes
1 parent e434b57 commit ef8d267

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/analyze/velero.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (a *AnalyzeVelero) veleroStatus(analyzer *troubleshootv1beta2.VeleroAnalyze
7777
restoreCount = 1
7878
}
7979

80-
if oldVeleroRepoType == true {
80+
if oldVeleroRepoType {
8181
// old velero (v1.9.x) has a BackupRepositoryTypeRestic
8282
// get resticrepositories.velero.io
8383
resticRepositoriesDir := GetVeleroResticRepositoriesDirectory()
@@ -284,7 +284,7 @@ func (a *AnalyzeVelero) veleroStatus(analyzer *troubleshootv1beta2.VeleroAnalyze
284284
}
285285

286286
veleroLogsGlob := filepath.Join(logsDir, "velero*", "*.log")
287-
veleroLogs, err := findFiles(veleroLogsGlob, excludeFiles)
287+
veleroLogs, _ := findFiles(veleroLogsGlob, excludeFiles)
288288

289289
results = append(results, analyzeLogs(nodeAgentlogs, "node-agent*")...)
290290
results = append(results, analyzeLogs(veleroLogs, "velero*")...)
@@ -666,14 +666,14 @@ func aggregateResults(results []*AnalyzeResult) []*AnalyzeResult {
666666
out = append(out, result)
667667
}
668668
if len(results) > 0 {
669-
if resultFailed == false {
669+
if !resultFailed {
670670
out = append(out, &AnalyzeResult{
671671
Title: "Velero Status",
672672
IsPass: true,
673673
Message: "Velero setup is healthy",
674674
})
675675
}
676-
if resultFailed == true {
676+
if resultFailed {
677677
out = append(out, &AnalyzeResult{
678678
Title: "Velero Status",
679679
IsWarn: true,

0 commit comments

Comments
 (0)