Skip to content

Commit 30fd535

Browse files
committed
lint fixes
1 parent fa8c37d commit 30fd535

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

cmd/cache.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type RowCountEntry struct {
4747
func getCachePath(tableName string) string {
4848
homeDir, _ := os.UserHomeDir()
4949
cacheDir := filepath.Join(homeDir, ".postgresql-archiver", "cache")
50-
os.MkdirAll(cacheDir, 0755)
50+
_ = os.MkdirAll(cacheDir, 0755)
5151
return filepath.Join(cacheDir, fmt.Sprintf("%s_metadata.json", tableName))
5252
}
5353

@@ -79,9 +79,9 @@ func loadPartitionCache(tableName string) (*PartitionCache, error) {
7979
}
8080
}
8181
// Save in new format
82-
newCache.save(tableName)
82+
_ = newCache.save(tableName)
8383
// Remove old cache file
84-
os.Remove(getLegacyCachePath(tableName))
84+
_ = os.Remove(getLegacyCachePath(tableName))
8585
return newCache, nil
8686
}
8787
// Return empty cache if no legacy cache exists

cmd/progress.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ func (m *progressModel) countNextTable() tea.Cmd {
365365
// Done counting all tables - clean expired entries and save cache
366366
if m.partitionCache != nil && m.config != nil {
367367
m.partitionCache.cleanExpired()
368-
m.partitionCache.save(m.config.Table)
368+
_ = m.partitionCache.save(m.config.Table)
369369
}
370370
return func() tea.Msg {
371371
return partitionsFoundMsg{partitions: m.countedPartitions}
@@ -395,7 +395,7 @@ func (m *progressModel) countNextTable() tea.Cmd {
395395
if m.partitionCache != nil {
396396
m.partitionCache.setRowCount(table.name, count)
397397
// Save cache immediately after updating
398-
m.partitionCache.save(m.config.Table)
398+
_ = m.partitionCache.save(m.config.Table)
399399
}
400400
} else {
401401
// Even on error, continue to next table
@@ -547,10 +547,6 @@ func (m progressModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
547547
// Check if we need to transition phases based on the message
548548
if strings.Contains(msgStr, "✅ Table permissions verified") && m.phase == PhaseCheckingPermissions {
549549
// Add S3 connection message
550-
s3Endpoint := m.config.S3.Endpoint
551-
if s3Endpoint == "" {
552-
s3Endpoint = "AWS S3"
553-
}
554550
m.messages = append(m.messages, fmt.Sprintf("✅ Connected to S3 at s3://%s", m.config.S3.Bucket))
555551
if len(m.messages) > 10 {
556552
m.messages = m.messages[len(m.messages)-10:]

0 commit comments

Comments
 (0)