Skip to content

Commit

Permalink
Remove tautological ternary statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jan 18, 2024
1 parent 2ec0c16 commit efe85c0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -138,8 +138,7 @@ private void applyArguments(HttpRequestValues.Builder requestValues, Object[] ar
int index = i;
Assert.state(resolved, () ->
"Could not resolve parameter [" + this.parameters[index].getParameterIndex() + "] in " +
this.parameters[index].getExecutable().toGenericString() +
(StringUtils.hasText("No suitable resolver") ? ": " + "No suitable resolver" : ""));
this.parameters[index].getExecutable().toGenericString() + ": No suitable resolver");
}
}

Expand Down

0 comments on commit efe85c0

Please sign in to comment.