Skip to content

Commit dd1816b

Browse files
committed
fix: linting
1 parent fb928e9 commit dd1816b

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

orbit/pkg/useraction/mdm_migration.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package useraction
22

3-
import "github.com/fleetdm/fleet/v4/server/fleet"
3+
import (
4+
"github.com/fleetdm/fleet/v4/orbit/pkg/migration"
5+
"github.com/fleetdm/fleet/v4/server/fleet"
6+
"github.com/fleetdm/fleet/v4/server/service"
7+
)
48

59
// MDMMigrator represents the minimum set of methods a migration must implement
610
// in order to be used by Fleet Desktop.
@@ -41,3 +45,11 @@ type MDMMigratorHandler interface {
4145
NotifyRemote() error
4246
ShowInstructions() error
4347
}
48+
49+
type OfflineWatcher struct {
50+
client *service.DeviceClient
51+
swiftDialogPath string
52+
// swiftDialogCh is shared with the migrator and used to ensure only one dialog is open at a time
53+
swiftDialogCh chan struct{}
54+
fileWatcher migration.FileWatcher
55+
}

orbit/pkg/useraction/mdm_migration_darwin.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -658,14 +658,6 @@ func StartMDMMigrationOfflineWatcher(ctx context.Context, client *service.Device
658658
return watcher
659659
}
660660

661-
type OfflineWatcher struct {
662-
client *service.DeviceClient
663-
swiftDialogPath string
664-
// swiftDialogCh is shared with the migrator and used to ensure only one dialog is open at a time
665-
swiftDialogCh chan struct{}
666-
fileWatcher migration.FileWatcher
667-
}
668-
669661
// ShowIfOffline shows the offline dialog if the host is offline.
670662
// It returns true if the host is offline, and false otherwise.
671663
func (o *OfflineWatcher) ShowIfOffline(ctx context.Context) bool {

0 commit comments

Comments
 (0)