Skip to content

Commit 1b81fca

Browse files
Removed file extension correction
1 parent 0a9e290 commit 1b81fca

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/scriptmanager/util/GZipUtilities.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,10 @@ public static BufferedReader makeReader(File f) throws IOException{
101101
* @throws IOException Invalid file
102102
*/
103103
public static PrintStream makePrintStream(File o, boolean gzip) throws IOException{
104-
if (!ExtensionFileFilter.getExtension(o).equals("gz") && gzip){
105-
o = new File(o.getCanonicalPath() + ".gz");
106-
}
107-
else if (ExtensionFileFilter.getExtension(o).equals("gz") && !gzip) {
108-
o = new File(ExtensionFileFilter.stripExtension(o));
109-
}
110104
if(gzip){
111105
return new PrintStream(new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(o))));
112106
} else {
113107
return new PrintStream(new BufferedOutputStream(new FileOutputStream(o)));
114108
}
115-
116109
}
117110
}

0 commit comments

Comments
 (0)