Skip to content

Commit

Permalink
mehr trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Breu authored and Michael Breu committed Dec 20, 2024
1 parent a668586 commit e1c4d3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public ProgrammingExerciseImportFromFileService(ProgrammingExerciseService progr
* @param isImportFromSharing flag whether file import (false) of sharing import
* @return the imported programming exercise
**/
public ProgrammingExercise importProgrammingExerciseFromFile(ProgrammingExercise originalProgrammingExercise, MultipartFile zipFile, Course course, User user, boolean isImportFromSharing)
throws IOException, GitAPIException, URISyntaxException {
public ProgrammingExercise importProgrammingExerciseFromFile(ProgrammingExercise originalProgrammingExercise, MultipartFile zipFile, Course course, User user,
boolean isImportFromSharing) throws IOException, GitAPIException, URISyntaxException {
if (!"zip".equals(FilenameUtils.getExtension(zipFile.getOriginalFilename()))) {
throw new BadRequestAlertException("The file is not a zip file", "programmingExercise", "fileNotZip");
}
Expand Down

0 comments on commit e1c4d3f

Please sign in to comment.