Skip to content

Commit 01f559a

Browse files
committed
fix lint
1 parent b4468c1 commit 01f559a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/orgdata/gcs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (s *slackOrgDataService) LoadFromGCS(ctx context.Context, config GCSConfig)
2828
}
2929

3030
// Store the GCS source for watching
31-
s.gcsSource = gcsSource
31+
s.dataSource = gcsSource
3232

3333
// Load data from GCS
3434
return s.core.LoadFromDataSource(ctx, gcsSource)
@@ -37,10 +37,10 @@ func (s *slackOrgDataService) LoadFromGCS(ctx context.Context, config GCSConfig)
3737
// StartGCSWatcher starts watching GCS for data changes
3838
func (s *slackOrgDataService) StartGCSWatcher(ctx context.Context, config GCSConfig) error {
3939
// Use the same GCS source that was created during LoadFromGCS
40-
if s.gcsSource == nil {
40+
if s.dataSource == nil {
4141
return fmt.Errorf("GCS source not initialized. Call LoadFromGCS first")
4242
}
4343

4444
// Start watching for changes using the same data source instance
45-
return s.core.StartDataSourceWatcher(ctx, s.gcsSource)
45+
return s.core.StartDataSourceWatcher(ctx, s.dataSource)
4646
}

pkg/orgdata/interface.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func NewIndexedOrgDataService() OrgDataServiceInterface {
5757

5858
// slackOrgDataService wraps the core service to provide Slack-specific functionality
5959
type slackOrgDataService struct {
60-
core orgdatacore.ServiceInterface
61-
gcsSource orgdatacore.DataSource // Keep reference to GCS source for watching
60+
core orgdatacore.ServiceInterface
61+
dataSource orgdatacore.DataSource //nolint:unused // Keep reference to data source for watching (used with build tags)
6262
}
6363

6464
// IsSlackUserUID checks if a Slack ID corresponds to a specific UID

0 commit comments

Comments
 (0)