Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Haozhe321 committed Apr 16, 2018
1 parent 341d083 commit b1f7dae
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,10 @@ public int getNumOfChoicesForMsq(String courseId, FeedbackParticipantType genera
} catch (EntityDoesNotExistException e) {
Assumption.fail("Course disappeared");
}
} else {
List<InstructorAttributes> instructorList = InstructorsLogic.inst().getInstructorsForCourse(courseId);

return instructorList.size();
}
return 0;
List<InstructorAttributes> instructorList = InstructorsLogic.inst().getInstructorsForCourse(courseId);

return instructorList.size();
}

private List<String> generateOptionList(String courseId) {
Expand Down Expand Up @@ -482,8 +480,8 @@ public String getNewQuestionSpecificEditFormHtml() {
+ "</div>";
}

//Confusing Ternary flagged for the `else if` condition below.
//Note: Exclusion to this rule will be added in future PMD patch.
// Confusing Ternary flagged for the `else if` condition below.
// Note: Exclusion to this rule will be added in future PMD patch.
@SuppressWarnings("PMD.ConfusingTernary")
@Override
public String getQuestionAdditionalInfoHtml(int questionNumber, String additionalInfoId) {
Expand Down

0 comments on commit b1f7dae

Please sign in to comment.