Skip to content

Commit

Permalink
Fix comment style for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ziqing26 committed Mar 30, 2024
1 parent 0855806 commit a402e8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
13 changes: 4 additions & 9 deletions src/main/java/teammates/sqllogic/core/AccountRequestsLogic.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,30 +105,25 @@ public List<AccountRequest> getPendingAccountRequests() {
}

/**
* Creates/resets the account request with the given email and institute such
* that it is not registered.
* Creates/resets the account request with the given email and institute such that it is not registered.
*/
public AccountRequest resetAccountRequest(String email, String institute)
throws EntityDoesNotExistException, InvalidParametersException {
AccountRequest accountRequest = accountRequestDb.getAccountRequest(email, institute);

if (accountRequest == null) {
throw new EntityDoesNotExistException("Failed to reset since AccountRequest with "
+ "the given email and institute cannot be found.");
+ "the given email and institute cannot be found.");
}
accountRequest.setRegisteredAt(null);

return accountRequestDb.updateAccountRequest(accountRequest);
}

/**
* Deletes account request associated with the {@code email} and
* {@code institute}.
* Deletes account request associated with the {@code email} and {@code institute}.
*
* <p>
* Fails silently if no account requests with the given email and institute to
* delete can be found.
* </p>
* <p>Fails silently if no account requests with the given email and institute to delete can be found.</p>
*
*/
public void deleteAccountRequest(String email, String institute) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public FeedbackRankOptionsQuestion(
String description, FeedbackParticipantType giverType, FeedbackParticipantType recipientType,
Integer numOfEntitiesToGiveFeedbackTo, List<FeedbackParticipantType> showResponsesTo,
List<FeedbackParticipantType> showGiverNameTo, List<FeedbackParticipantType> showRecipientNameTo,
FeedbackQuestionDetails feedbackQuestionDetails) {
FeedbackQuestionDetails feedbackQuestionDetails
) {
super(feedbackSession, questionNumber, description, giverType, recipientType,
numOfEntitiesToGiveFeedbackTo, showResponsesTo, showGiverNameTo, showRecipientNameTo);
setFeedBackQuestionDetails((FeedbackRankOptionsQuestionDetails) feedbackQuestionDetails);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ AuthType getMinAuthLevel() {

@Override
void checkSpecificAccessControl() throws UnauthorizedAccessException {
// Nothing needs to be done here because anybody should be able to create an
// account request.
// Nothing needs to be done here because anybody should be able to create an account request.
}

@Override
Expand Down

0 comments on commit a402e8f

Please sign in to comment.