Skip to content

Commit

Permalink
Fix checkstyle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jessica2828 committed Oct 9, 2024
1 parent 4165be7 commit f3cb161
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/seedu/address/logic/commands/DeleteCommand.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package seedu.address.logic.commands;

import static java.util.Objects.requireNonNull;
import static seedu.address.logic.parser.CliSyntax.PREFIX_STUDENTID;

import java.util.List;

import static seedu.address.logic.parser.CliSyntax.PREFIX_STUDENTID;

import seedu.address.commons.util.ToStringBuilder;
import seedu.address.logic.Messages;
import seedu.address.logic.commands.exceptions.CommandException;
Expand Down Expand Up @@ -36,6 +35,13 @@ public DeleteCommand(StudentId studentId) {
this.studentId = studentId;
}

/**
* Executes the delete command and removes a person identified by the given studentID.
*
* @param model the model that contains the data of persons
* @return a CommandResult that shows the outcome of the command
* @throws CommandException if the studentID is invalid or not found
*/
@Override
public CommandResult execute(Model model) throws CommandException {
requireNonNull(model);
Expand Down

0 comments on commit f3cb161

Please sign in to comment.