Skip to content

Commit

Permalink
remove unnecessary buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
zzz committed Sep 8, 2019
1 parent 7f75d02 commit 65698aa
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,7 @@ public String renderUpdateStatusHTML() {

public String renderRestartStatusHTML() {
if (_helper == null) return "";
StringBuilder buf = new StringBuilder(512);
buf.append(_helper.getRestartStatus());
return buf.toString();
return _helper.getRestartStatus();
}

public String renderPeersHTML() {
Expand Down Expand Up @@ -770,9 +768,7 @@ public String renderPeersAdvancedHTML() {

public String renderFirewallAndReseedStatusHTML() {
if (_helper == null) return "";
StringBuilder buf = new StringBuilder(512);
buf.append(_helper.getFirewallAndReseedStatus());
return buf.toString();
return _helper.getFirewallAndReseedStatus();
}

public String renderBandwidthHTML() {
Expand Down Expand Up @@ -948,9 +944,7 @@ public String renderTunnelStatusHTML() {

public String renderDestinationsHTML() {
if (_helper == null) return "";
StringBuilder buf = new StringBuilder(512);
buf.append(_helper.getDestinations());
return buf.toString();
return _helper.getDestinations();
}

/** @since 0.9.1 */
Expand Down

0 comments on commit 65698aa

Please sign in to comment.