Skip to content

Commit

Permalink
Use auto type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexh-sauce committed Oct 23, 2024
1 parent 3c61b23 commit 8dd0218
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ protected Process prepAndCreateProcess(
}

public String hideSauceConnectCommandlineSecrets(String[] args) {
HashMap<String, String> map = new HashMap<>();
var map = new HashMap<String, String>();
map.put("-k", "^().*");
map.put("--access-key", "^().*");
map.put("-a", "^().*");
Expand All @@ -274,7 +274,7 @@ public String hideSauceConnectCommandlineSecrets(String[] args) {
map.put("--proxy", "^(.*:).*(@.*)");
String regexpForNextElement = null;

HashMap<String, String> replaceMap = new HashMap<>();
var replaceMap = new HashMap<String, String>();
replaceMap.put("-k", "****");
replaceMap.put("--access-key", "****");
replaceMap.put("-a", "****");
Expand All @@ -283,7 +283,7 @@ public String hideSauceConnectCommandlineSecrets(String[] args) {
replaceMap.put("-x", "$1****$2");
replaceMap.put("--proxy", "$1****$2");
String replaceForNextElement = null;
List<String> hiddenArgs = new ArrayList<>();
var hiddenArgs = new ArrayList<String>();

for (String arg : args) {
if (regexpForNextElement != null) {
Expand Down

0 comments on commit 8dd0218

Please sign in to comment.