fix: resolve golangci-lint issues

- Fix goimports formatting in multiple files
- Remove unused keyType variables in kms_integration.go
- Clean up import formatting
This commit is contained in:
2025-08-16 22:39:45 -05:00
parent aacd3d4403
commit 7d585c39ad
8 changed files with 51 additions and 60 deletions
+4 -4
View File
@@ -15,7 +15,7 @@ func main() {
viper.SetConfigType("yaml")
viper.AddConfigPath("..")
viper.AutomaticEnv()
if err := viper.ReadInConfig(); err != nil {
log.Printf("Warning: Could not read config file: %v", err)
}
@@ -68,7 +68,7 @@ func main() {
if err != nil {
log.Fatalf("Failed to retrieve test key: %v", err)
}
if string(retrievedData) == string(testKeyData) {
fmt.Println("✅ Successfully retrieved test key with correct data!")
} else {
@@ -81,7 +81,7 @@ func main() {
if err != nil {
log.Fatalf("Failed to list keys: %v", err)
}
fmt.Printf("Found %d keys:\n", len(keys))
for _, key := range keys {
fmt.Printf(" - %s\n", key)
@@ -97,4 +97,4 @@ func main() {
}
fmt.Println("\n🎉 All tests passed! Lux KMS integration is working correctly.")
}
}