Skip to content

Commit

Permalink
Added a comment to clarify my reasoning as requested by @mhenriks
Browse files Browse the repository at this point in the history
Signed-off-by: Omer Yahud <[email protected]>
  • Loading branch information
omeryahud committed Mar 3, 2020
1 parent 25c2272 commit 8ab80c5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ func (admitter *VMsAdmitter) authorizeVirtualMachineSpec(ar *v1beta1.AdmissionRe

causes = validateNoModificationsDuringRename(ar, vm)

// Adding this statement here so the next developer won't have to take care
// of errors when they add more functionality to this function, they will only have to
// add their code below it
if len(causes) > 0 {
return causes, nil
}
Expand Down

0 comments on commit 8ab80c5

Please sign in to comment.