ソースを参照

fix(go): comments;

Vishal Dalwadi 4 ヶ月 前
コミット
b37763b399
1 ファイル変更2 行追加2 行削除
  1. 2 2
      pro/logic/user_mgmt.go

+ 2 - 2
pro/logic/user_mgmt.go

@@ -525,7 +525,7 @@ func ValidateUpdateGroupReq(g models.UserGroup) error {
 
 // CreateUserGroup - creates new user group
 func CreateUserGroup(g models.UserGroup) error {
-	// check if role already exists
+	// check if the group already exists
 	if g.ID == "" {
 		return errors.New("group id cannot be empty")
 	}
@@ -574,7 +574,7 @@ func ListUserGroups() ([]models.UserGroup, error) {
 
 // UpdateUserGroup - updates new user group
 func UpdateUserGroup(g models.UserGroup) error {
-	// check if group exists
+	// check if the group exists
 	if g.ID == "" {
 		return errors.New("group id cannot be empty")
 	}