Skip to content

Commit

Permalink
删除无效参数声明及引用
Browse files Browse the repository at this point in the history
Signed-off-by: hecy7 <[email protected]>
  • Loading branch information
MiKKiYang committed Dec 11, 2023
1 parent 6a3bc66 commit 884d692
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private void tryToLoadArthasProperties() throws IOException {
if (new File(location).exists()) {
Properties properties = FileUtils.readProperties(location);

boolean overrideAll = false;
boolean overrideAll;
if (arthasEnvironment.containsProperty(CONFIG_OVERRIDE_ALL)) {
overrideAll = arthasEnvironment.getRequiredProperty(CONFIG_OVERRIDE_ALL, boolean.class);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class PlainTextHandler extends StdoutHandler {
public static String NAME = "plaintext";

public static StdoutHandler inject(List<CliToken> tokens) {
public static StdoutHandler inject() {
return new PlainTextHandler();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static StdoutHandler inject(List<CliToken> tokens) {
if (firstTextToken.value().equals(GrepHandler.NAME)) {
return GrepHandler.inject(tokens);
} else if (firstTextToken.value().equals(PlainTextHandler.NAME)) {
return PlainTextHandler.inject(tokens);
return PlainTextHandler.inject();
} else if (firstTextToken.value().equals(WordCountHandler.NAME)) {
return WordCountHandler.inject(tokens);
} else if (firstTextToken.value().equals(TeeHandler.NAME)){
Expand Down

0 comments on commit 884d692

Please sign in to comment.