mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
common/helpers: fix Diff configuration
This commit is contained in:
@@ -42,7 +42,7 @@ type DiffOption struct {
|
||||
// Diff return a diff of two objects. If no diff, an empty string is
|
||||
// returned.
|
||||
func Diff(a, b interface{}, options ...DiffOption) string {
|
||||
prettyC = prettyC
|
||||
prettyC := prettyC
|
||||
prettyC.Formatter = defaultPrettyFormatters()
|
||||
for _, option := range options {
|
||||
switch option.kind {
|
||||
|
||||
Reference in New Issue
Block a user