File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/com/github/dockerjava Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ protected List<Container> execute(ListContainersCmd command) {
3737 webTarget = webTarget .queryParam ("limit" , String .valueOf (command .getLimit ()));
3838 }
3939
40- if (command .getFilters () != null ) {
40+ if (command .getFilters () != null && ! command . getFilters (). isEmpty () ) {
4141 webTarget = webTarget
4242 .queryParam ("filters" , urlPathSegmentEscaper ().escape (FiltersEncoder .jsonEncode (command .getFilters ())));
4343 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ protected List<Container> execute(ListContainersCmd command) {
3636 webTarget = webTarget .queryParam ("limit" , String .valueOf (command .getLimit ()));
3737 }
3838
39- if (command .getFilters () != null ) {
39+ if (command .getFilters () != null && ! command . getFilters (). isEmpty () ) {
4040 webTarget = webTarget
4141 .queryParam ("filters" , urlPathSegmentEscaper ().escape (FiltersEncoder .jsonEncode (command .getFilters ())));
4242 }
You can’t perform that action at this time.
0 commit comments