Skip to content

Commit

Permalink
Merge pull request #124 from NereusWB922/hotfix-groupChildOperation-c…
Browse files Browse the repository at this point in the history
…heckArgument

Edit argument check for groupChildOperation
  • Loading branch information
NereusWB922 authored Oct 17, 2023
2 parents 2f21cd8 + 1faf153 commit 27db52c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ public ChildOperation<Student> groupChildOperation(AbsolutePath path) {
requireNonNull(path);
checkArgument(path.isGroupDirectory() || path.isStudentDirectory(),
String.format(MESSAGE_INTERNAL_ERROR, "Path must have group information"));
checkArgument(hasPath(path),
String.format(MESSAGE_INTERNAL_ERROR, "Path must exist in ProfBook"));
checkArgument(hasGroup(path),
String.format(MESSAGE_INTERNAL_ERROR, "Group must exist in ProfBook"));
return new ChildOperation<>(getGroupFromPath(path).getChildrenManger());
}

Expand Down

0 comments on commit 27db52c

Please sign in to comment.