Skip to content

Commit

Permalink
Simplify string expression
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Dec 17, 2024
1 parent 420a390 commit 972af6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/win/WinConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public boolean exists(String path) throws IOException {

private static String toAdministrativeShare(String path) {
// administrative windows share are DRIVE$path like
return path.substring(0, 1) + "$";
return path.charAt(0) + "$";
}

private static String toFilePath(String path) {
Expand Down

0 comments on commit 972af6e

Please sign in to comment.