Commit acdbd32a authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

remove unnecessary null check

parent 98daad0c
......@@ -43,9 +43,6 @@ public class TaskResource
final @PathParam("task_level") int taskLevel) throws IOException
{
Task task = tasksRepository.getByLevel(taskLevel);
if (task == null) {
return Response.status(Response.Status.BAD_REQUEST).build();
}
return Response.ok().entity(task.getTextForUser(user)).build();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment