Update BlogController.java

Update formatting
This commit is contained in:
Michael Pratt 2020-08-31 10:34:01 -06:00 committed by GitHub
parent c02caaac89
commit d4d7059add
1 changed files with 1 additions and 2 deletions

View File

@ -10,8 +10,7 @@ import java.util.Random;
public class BlogController {
@GetMapping("/blog/new")
public String newBlogPost(Model model)
{
public String newBlogPost(Model model) {
// Set a random ID so we can see it in the HTML form
BlogDTO blog = new BlogDTO();
blog.setBlogId(Math.abs(new Random().nextLong() % 1000000));