Skip to content

Commit

Permalink
LRAMF-337 Source formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleygong committed Oct 4, 2016
1 parent 6931948 commit f1d984b
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -25,10 +25,10 @@ public static class AlloyControllerImpl extends BaseAlloyControllerImpl {
}
public void add() throws Exception {
SAMTodoItem samTodoItem = SAMTodoItemLocalServiceUtil.createSAMTodoItem(0);
_validateAdd();
SAMTodoItem samTodoItem = SAMTodoItemLocalServiceUtil.createSAMTodoItem(0);
updateModel(samTodoItem, "status", 0);
addSuccessMessage();
Expand Down Expand Up @@ -136,10 +136,10 @@ public static class AlloyControllerImpl extends BaseAlloyControllerImpl {
List<SAMTodoItem> samTodoItems = alloyServiceInvoker.executeDynamicQuery(new Object[] {"userId", themeDisplay.getUserId(), "description", description});
if (!samTodoItems.isEmpty()) {
long samTodoItemId = ParamUtil.getLong(request, "samTodoItemId");
SAMTodoItem samTodoItem = samTodoItems.get(0);
long samTodoItemId = ParamUtil.getLong(request, "samTodoItemId");
if (samTodoItem.getSamTodoItemId() != samTodoItemId) {
throw new AlloyException("the-todo-item-already-exists", false);
}
Expand Down

0 comments on commit f1d984b

Please sign in to comment.