tiny simplification

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30302 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2010-04-21 17:48:32 +00:00
1 parent d21407be4f
commit 7694a68258
1 file changed
+1 -2
+1 -2
View File
@@ -3210,8 +3210,7 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
// cut off the "..." portion of /resources/.../path/to/file
// as this is only used to make path unique (which in turn
// allows us to set a long expiration date
path = path.substring(1);
path = path.substring(path.indexOf('/')+1);
path = path.substring(path.indexOf('/',1)+1);
int idx = path.lastIndexOf('.');
String extension = path.substring(idx+1);