Skip to content

Commit e243e6b

Browse files
nilsbehlenCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 04df91c commit e243e6b

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/main/java/org/privacyidea/PIResponse.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,7 @@ private boolean isNotBlank(String str) {
149149
*/
150150
public String otpMessage()
151151
{
152-
return reduceChallengeMessagesWhere(c ->
153-
{
154-
String cm = c.getClientMode();
155-
System.out.println(
156-
"challenge for " + c.getType() + " " + c.getSerial() + " with mode: " + cm);
157-
boolean yes = "interactive".equals(cm);
158-
return yes;
159-
});
152+
return reduceChallengeMessagesWhere(c -> "interactive".equals(c.getClientMode()));
160153
}
161154

162155
private String reduceChallengeMessagesWhere(Predicate<Challenge> predicate)

0 commit comments

Comments
 (0)