Skip to content

Commit ed528f7

Browse files
denikclaude
andcommitted
Use json.Marshal instead of json.MarshalIndent in migration
The result is parsed again later, indentation is unnecessary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 75edb0e commit ed528f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundle/direct/dstate/migrate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func migratePermissionsEntry(raw json.RawMessage) (json.RawMessage, error) {
113113
})
114114
}
115115

116-
return json.MarshalIndent(newState, " ", " ")
116+
return json.Marshal(newState)
117117
}
118118

119119
// oldGrantsStateV1 is the grants state format before v2.
@@ -136,5 +136,5 @@ func migrateGrantsEntry(raw json.RawMessage) (json.RawMessage, error) {
136136
}
137137
copy(newState.EmbeddedSlice, old.Grants)
138138

139-
return json.MarshalIndent(newState, " ", " ")
139+
return json.Marshal(newState)
140140
}

0 commit comments

Comments
 (0)