Skip to content

Commit 4f16b9f

Browse files
committed
deepsource sug fix - ommit comparison round 2
1 parent 2657899 commit 4f16b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/user/UserService.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func (impl UserServiceImpl) UpdateUser(userInfo *bean.UserInfo) (*bean.UserInfo,
329329
}
330330
}
331331
//if user which going to updated is super admin, action performing user also be super admin
332-
if isUserSuperAdmin == true {
332+
if isUserSuperAdmin {
333333
if !isActionPerformingUserSuperAdmin {
334334
err = &util.ApiError{HttpStatusCode: http.StatusForbidden, UserMessage: "Invalid request, not allow to update super admin type user"}
335335
return nil, err

0 commit comments

Comments
 (0)