Skip to content

Commit 252dcba

Browse files
committed
fix: rename redirectUrl to redirectTo
1 parent 7c5dfd9 commit 252dcba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func readOtpEntropy() ([]byte, error) { //nolint:unused
3939
return content[0x17:0x1C], nil
4040
}
4141

42-
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error { //nolint:unused
42+
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error {
4343
logger.Info().Msgf("Reboot requested, rebooting in %d seconds...", delay)
4444

4545
writeJSONRPCEvent("willReboot", postRebootAction, currentSession)

internal/ota/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type UpdateStatus struct {
4343
// It is used to redirect the user to a specific page after a reboot
4444
type PostRebootAction struct {
4545
HealthCheck string `json:"healthCheck"` // The health check URL to call after the reboot
46-
RedirectUrl string `json:"redirectUrl"` // The URL to redirect to after the reboot
46+
RedirectTo string `json:"redirectTo"` // The URL to redirect to after the reboot
4747
}
4848

4949
// componentUpdateStatus represents the status of a component update

0 commit comments

Comments
 (0)