Skip to content

Commit 91cc834

Browse files
committed
make fmt
1 parent 05ce32c commit 91cc834

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

enterprise/audit/diff.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func convertDiffType(left, right any) (newLeft, newRight any, changed bool) {
145145
case database.TemplateACL:
146146
return fmt.Sprintf("%+v", left), fmt.Sprintf("%+v", right), true
147147
case database.CustomRolePermissions:
148+
// String representation is much easier to visually inspect
148149
leftArr := make([]string, 0)
149150
rightArr := make([]string, 0)
150151
for _, p := range typedLeft {
@@ -154,8 +155,6 @@ func convertDiffType(left, right any) (newLeft, newRight any, changed bool) {
154155
rightArr = append(rightArr, p.String())
155156
}
156157

157-
// String representation is much easier to visually inspect
158-
//typedRight := right.(database.CustomRolePermission)
159158
return leftArr, rightArr, true
160159
default:
161160
return left, right, false

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy