mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Run a more strict formatter over the code (#11312)
* Update tooling * Run gofumpt * go mod vendor
This commit is contained in:
@@ -119,7 +119,7 @@ storage_source "src_type" {
|
||||
|
||||
storage_destination "dest_type" {
|
||||
path = "dest_path"
|
||||
}`), 0644)
|
||||
}`), 0o644)
|
||||
defer os.Remove(cfgName)
|
||||
|
||||
expCfg := &migratorConfig{
|
||||
@@ -145,7 +145,7 @@ storage_destination "dest_type" {
|
||||
}
|
||||
|
||||
verifyBad := func(cfg string) {
|
||||
ioutil.WriteFile(cfgName, []byte(cfg), 0644)
|
||||
ioutil.WriteFile(cfgName, []byte(cfg), 0o644)
|
||||
_, err := cmd.loadMigratorConfig(cfgName)
|
||||
if err == nil {
|
||||
t.Fatalf("expected error but none received from: %v", cfg)
|
||||
@@ -191,7 +191,6 @@ storage_destination "dest_type" {
|
||||
storage_destination "dest_type2" {
|
||||
path = "dest_path"
|
||||
}`)
|
||||
|
||||
})
|
||||
t.Run("DFS Scan", func(t *testing.T) {
|
||||
s, _ := physicalBackends["inmem"](map[string]string{}, nil)
|
||||
|
||||
Reference in New Issue
Block a user