Skip to content

Commit 6788114

Browse files
committed
fix: remove unused catch clause in Exec.java
1 parent 6b9579b commit 6788114

File tree

1 file changed

+1
-5
lines changed
  • util/src/main/java/io/kubernetes/client

1 file changed

+1
-5
lines changed

util/src/main/java/io/kubernetes/client/Exec.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,7 @@ public ExecutionBuilder setOnUnhandledError(Consumer<Throwable> onUnhandledError
438438
private String makePath() {
439439
String[] encodedCommand = new String[command.length];
440440
for (int i = 0; i < command.length; i++) {
441-
try {
442-
encodedCommand[i] = URLEncoder.encode(command[i], StandardCharsets.UTF_8);
443-
} catch (UnsupportedEncodingException ex) {
444-
throw new RuntimeException("some thing wrong happend: " + ex.getMessage());
445-
}
441+
encodedCommand[i] = URLEncoder.encode(command[i], StandardCharsets.UTF_8);
446442
}
447443
return "/api/v1/namespaces/"
448444
+ namespace

0 commit comments

Comments
 (0)