Skip to content

Commit

Permalink
Removed call to clean from isValid because call chain always provides…
Browse files Browse the repository at this point in the history
… clean url
  • Loading branch information
TheDavSmasher committed Dec 17, 2024
1 parent e9b9f7c commit b1fc6d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/edu/byu/cs/util/RepoUrlValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public class RepoUrlValidator {
public static boolean isValid(@Nullable String repoUrl) {
File cloningDir = new File("./tmp" + UUID.randomUUID());
try {
String cleanUrl = clean(repoUrl);
GitHelper.fetchRepoFromUrl(cleanUrl, cloningDir);
GitHelper.fetchRepoFromUrl(repoUrl, cloningDir);
return true;
} catch (GradingException e) {
return false;
Expand Down

0 comments on commit b1fc6d8

Please sign in to comment.