Skip to content

Commit 84137dd

Browse files
fix lint
1 parent e36b1c7 commit 84137dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgresql/resource_cockroachdb_changefeed.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func resourceCockroachDBChangefeedCreate(db *DBConnection, d *schema.ResourceDat
113113
}
114114

115115
d.SetId(jobID)
116-
d.Set(CDCAvroSchemaPrefix, fmt.Sprintf("%s", avroSchemaPrefix))
116+
d.Set(CDCAvroSchemaPrefix, avroSchemaPrefix)
117117
d.Set(CDCRegistryConnectionName, registryConnectionName)
118118
d.Set(CDCKafkaConnectionName, kafkaConnectionName)
119119
d.Set(CDCtableList, tableList)
@@ -151,7 +151,7 @@ func resourceCockroachDBChangefeedReadImpl(db *DBConnection, d *schema.ResourceD
151151
d.Set(CDCKafkaConnectionName, strings.TrimPrefix(sinkUri, "external://"))
152152
// setting the avro schema prefix and confluent schema registry
153153
avroSchemaPrefix, confluentSchemaRegistry, initialScanValue, cursorValue := extractDetails(description)
154-
d.Set(CDCAvroSchemaPrefix, fmt.Sprintf("%s", strings.TrimSuffix(avroSchemaPrefix, "_")))
154+
d.Set(CDCAvroSchemaPrefix, strings.TrimSuffix(avroSchemaPrefix, "_"))
155155
d.Set(CDCRegistryConnectionName, confluentSchemaRegistry)
156156
if initialScanValue == "yes" {
157157
d.Set(CDCInitialScan, "yes")

0 commit comments

Comments
 (0)