mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-06-22 22:40:01 -04:00
Fully replace .trim() with .strip() [stage]
This commit is contained in:
@@ -135,7 +135,7 @@ public class IncusCommandView extends CommandViewBase {
|
||||
var output = c.readStdoutOrThrow();
|
||||
return output.lines()
|
||||
.collect(Collectors.toMap(
|
||||
s -> s.trim().split(",")[0], s -> s.trim().split(",")[1], (x, y) -> y, LinkedHashMap::new));
|
||||
s -> s.strip().split(",")[0], s -> s.strip().split(",")[1], (x, y) -> y, LinkedHashMap::new));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ public class LxdCommandView extends CommandViewBase {
|
||||
var output = c.readStdoutOrThrow();
|
||||
return output.lines()
|
||||
.collect(Collectors.toMap(
|
||||
s -> s.trim().split(",")[0], s -> s.trim().split(",")[1], (x, y) -> y, LinkedHashMap::new));
|
||||
s -> s.strip().split(",")[0], s -> s.strip().split(",")[1], (x, y) -> y, LinkedHashMap::new));
|
||||
} catch (ProcessOutputException ex) {
|
||||
if (ex.getOutput().contains("Error: unknown shorthand flag: 'f' in -f")) {
|
||||
throw ErrorEvent.expected(ProcessOutputException.withParagraph("Unsupported legacy LXD version", ex));
|
||||
|
||||
Reference in New Issue
Block a user