Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit91cc834

Browse files
committed
make fmt
1 parent05ce32c commit91cc834

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
returnfmt.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:=rangetypedLeft {
@@ -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
returnleftArr,rightArr,true
160159
default:
161160
returnleft,right,false

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp