Skip to content

Commit ba9075f

Browse files
authored
Merge pull request #53 from qonto/fix-linter
chore: fix linter issues
2 parents 49cd327 + 75d6149 commit ba9075f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pkg/ppm/bounds.go

+1
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,6 @@ func convertToDateTimeWithoutTimezone(bound time.Time) time.Time {
118118
if err != nil {
119119
return time.Time{}
120120
}
121+
121122
return parsedTime
122123
}

pkg/ppm/checkpartition_test.go

+8-3
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,15 @@ func TestCheckPartitions(t *testing.T) {
5151

5252
// Build mock for each partitions
5353
for _, p := range partitions {
54-
var tables []partition.Partition
55-
var retentionTables []partition.Partition
56-
var preprovisionedTables []partition.Partition
54+
var (
55+
tables []partition.Partition
56+
retentionTables []partition.Partition
57+
preprovisionedTables []partition.Partition
58+
)
5759

5860
// Create retention partitions
5961
forDate := time.Now()
62+
6063
switch p.Interval {
6164
case partition.Daily:
6265
retentionTables, _ = p.GetRetentionPartitions(forDate)
@@ -71,6 +74,7 @@ func TestCheckPartitions(t *testing.T) {
7174
default:
7275
t.Errorf("unuspported partition interval in retention table mock")
7376
}
77+
7478
tables = append(tables, retentionTables...)
7579

7680
// Create current partition
@@ -92,6 +96,7 @@ func TestCheckPartitions(t *testing.T) {
9296
default:
9397
t.Errorf("unuspported partition interval in preprovisonned table mock")
9498
}
99+
95100
tables = append(tables, preprovisionedTables...)
96101

97102
postgreSQLMock.On("GetColumnDataType", p.Schema, p.Table, p.PartitionKey).Return(postgresql.Date, nil).Once()

0 commit comments

Comments
 (0)