Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/org/takes/facets/auth/Identity.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public String urn() {

@Override
public Map<String, String> properties() {
return Collections.unmodifiableMap(this.props);
return (this.props);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/takes/facets/auth/PsToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private PsToken(final SiHmac sign, final long seconds) {
@Override
public Opt<Identity> enter(final Request req) throws IOException {
// @checkstyle ExecutableStatementCount (100 lines)
Opt<Identity> user = new Opt.Empty<>();
final Opt<Identity> user = new Opt.Empty<>();
final UncheckedText head = new Unchecked<>(
new FirstOf<>(
text -> new StartsWith(
Expand Down Expand Up @@ -139,7 +139,7 @@ public Opt<Identity> enter(final Request req) throws IOException {
)
)
)) {
user = new Opt.Single<>(
return new Opt.Single<>(
new Identity.Simple(
rdr.readObject().getString(Token.Jwt.SUBJECT)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public XeGithubLink(final Request req, final CharSequence app)
*/
public XeGithubLink(final Request req, final CharSequence app,
final CharSequence rel, final CharSequence flag) throws IOException {
super(XeGithubLink.make(req, app, rel, flag));
super(make(req, app, rel, flag));
}

/**
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/org/takes/facets/fork/FkChain.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ public FkChain(final Collection<Fork> forks) {

@Override
public Opt<Response> route(final Request request) throws Exception {
Opt<Response> response = new Opt.Empty<>();
final Opt<Response> response = new Opt.Empty<>();
for (final Fork fork : this.forks) {
final Opt<Response> current = fork.route(request);
if (current.has()) {
response = current;
break;
return current;
}
}
return response;
Expand Down
Loading