Skip to content

Commit

Permalink
migrator: fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan authored and ChrisSchinnerl committed Feb 10, 2025
1 parent d3d2e2d commit 61f4470
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions autopilot/migrator/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ var (
func filterMigrationFailedAlertIDs(a []alerts.Alert) (ids []types.Hash256) {
for _, alert := range a {
var sk object.EncryptionKey
if val, ok := alert.Data["slabKey"]; !ok {
continue
} else if sks, ok := val.(string); !ok {
if sks, ok := alert.Data["slabKey"].(string); !ok {
continue
} else if err := sk.UnmarshalText([]byte(sks)); err != nil {
continue
Expand Down

0 comments on commit 61f4470

Please sign in to comment.