mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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:
1 parent
d21407be4f
commit
7694a68258
1 file changed
+1
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user