Skip to content

Commit

Permalink
Fix issues reported by SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed May 2, 2023
1 parent d2969f1 commit 230f199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static ClickHouseHttpConnection createConnection(ClickHouseNode server, C
} catch (IOException e) {
throw e;
} catch (Throwable t) {
log.warn("Error when creating http client %s, will use HTTP_URL_CONNECTION", provider.name(), t);
log.warn("Error when creating http client %s, will use HTTP_URL_CONNECTION", provider, t);
return new HttpUrlConnectionImpl(server, request, executor);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ final long read(Options options) throws ClickHouseException, SQLException {
if (options.hasFile()) {
try {
response.getInputStream().setCopyToTarget(
!"-".equals(options.file) ? new FileOutputStream(options.file, false)
!"-".equals(options.file) ? new FileOutputStream(options.file, false) // NOSONAR
: System.out); // NOSONAR
} catch (IOException e) {
throw ClickHouseException.of(e, server);
Expand Down

0 comments on commit 230f199

Please sign in to comment.