Time:10-29
CodePudding user response:
reason found, if one wrote; Led to the back less than before, an
Quote: best wishes reference 1/f, proud boy reply: Found the reason, if one wrote; Led to the back less than before, an You throw the exception above, the following code to can not run, so the waste code below! UNreachable, can't get the meaning of!
Found the reason, if one wrote; Led to the back less than before, an
the if (); Ended the if the back of the; Removed, as the following: If (StringUtils. IsEmpty (entity. GetName)) throw new ServiceException (" department name cannot be empty "); Directly with multiple don't change the if () statement, called guard expression, this format specifications, if behind the if only one statement, is not recommended a newline, format more neatly
Page link:https//www.codepudding.com/Backend/73897.html