Skip to content

Commit

Permalink
fix: optimize comments
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Jul 2, 2024
1 parent 10c894d commit 385e69b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion orm/ent/deptctx/dept_ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
const DEPARTMENT_ADMIN = "department-admin"

// GetDepartmentIDFromCtx returns department id from context.
// If error occurs, return default department ID.
func GetDepartmentIDFromCtx(ctx context.Context) (uint64, error) {
var departmentId string

Expand Down
1 change: 0 additions & 1 deletion orm/ent/userctx/user_ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
)

// GetUserIDFromCtx returns user id from context.
// If error occurs, return default user ID.
func GetUserIDFromCtx(ctx context.Context) (string, error) {
if userId, ok := ctx.Value("userId").(string); !ok {
if md, ok := metadata.FromIncomingContext(ctx); !ok {
Expand Down

0 comments on commit 385e69b

Please sign in to comment.