Skip to content

Commit

Permalink
remove duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Jun 17, 2021
1 parent ea4cf92 commit b61df27
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,3 @@ func MakeRelativePath(p string) string {
}
return "." + p
}

// IsSameUserID compares to UserIds for equallity.
// TODO move to a comparison package
func IsSameUserID(i *userpb.UserId, j *userpb.UserId) bool {
switch {
case i == nil, j == nil:
return false
case i.OpaqueId == j.OpaqueId && i.Idp == j.Idp:
return true
default:
return false
}
}

0 comments on commit b61df27

Please sign in to comment.