Skip to content

Commit

Permalink
Reword a confusing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrozek committed Apr 22, 2024
1 parent 95738e0 commit ebc3a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/profiles/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (p *profileService) PatchProfile(
}

func patchProfilePb(oldProfilePb, patchPb *minderv1.Profile, updateMask *fieldmaskpb.FieldMask) {
// if there is no update mask, return the old profile. The grpc-rest gateway always sets the update mask
// if there is no update mask, there's no changes. The grpc-rest gateway always sets the update mask
if updateMask == nil {
return
}
Expand Down

0 comments on commit ebc3a37

Please sign in to comment.