Skip to content

Commit

Permalink
Move username
Browse files Browse the repository at this point in the history
  • Loading branch information
hub-cap committed Jul 13, 2018
1 parent d54bcbe commit 0dc862f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ public final XContentBuilder toXContent(XContentBuilder builder, Params params)
builder.field(NODE.getPreferredName(), nodeId);
builder.field(STATE.getPreferredName(), state.id());

if (user != null) {
builder.field(USER.getPreferredName(), user);
}
if (watch != null && watch.status() != null) {
builder.field(STATUS.getPreferredName(), watch.status(), params);
}
Expand Down Expand Up @@ -183,9 +186,6 @@ public final XContentBuilder toXContent(XContentBuilder builder, Params params)
if (executionResult != null) {
builder.field(EXECUTION_RESULT.getPreferredName(), executionResult, params);
}
if (user != null) {
builder.field(USER.getPreferredName(), user);
}
innerToXContent(builder, params);
builder.endObject();
return builder;
Expand Down

0 comments on commit 0dc862f

Please sign in to comment.