Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Remove fallback for a never happen situation gitlab4j#382
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeVienne committed Jun 10, 2019
1 parent 5c3f632 commit 1dfb47e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/org/gitlab4j/api/ImportExportApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ public File downloadExport(Object projectIdOrPath, File directory, String filena
String template = "%1$tY-%1$tm-%1$td_%1$tH-%1$tM-%1%tS_projectid-%2$d_export.tar.gz";
filename = String.format(template, new Date(), projectIdOrPath);
// filename = "2019-06-10_10-28-52_projectid_3115610_export.tar.gz"
} else {
// Fallback for strange types
String template = "%1$tY-%1$tm-%1$td_%1$tH-%1$tM-%1%tS_project-%2$d_export.tar.gz";
filename = String.format(template, new Date(), projectIdOrPath);
// filename = "2019-06-10_10-28-52_project_3115610_export.tar.gz"
}
} else {
filename = disposition.replaceFirst("(?i)^.*filename=\"?([^\"]+)\"?.*$", "$1");
Expand Down

0 comments on commit 1dfb47e

Please sign in to comment.