Skip to content

Commit 6d3ce29

Browse files
Maisydsyer
authored andcommitted
add missing 'return'
1 parent c7ebd30 commit 6d3ce29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

click/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class SocialApplication {
6060
6161
@GetMapping("/user")
6262
public Map<String, Object> user(@AuthenticationPrincipal OAuth2User principal) {
63-
Collections.singletonMap("name", principal.getAttribute("name"));
63+
return Collections.singletonMap("name", principal.getAttribute("name"));
6464
}
6565
6666
public static void main(String[] args) {
@@ -127,4 +127,4 @@ Configuring the `authenticationEntryPoint` achieves this for us.
127127

128128
With those changes in place, the application is complete, and if you run it and visit the home page you should see a nicely styled HTML link to "login with GitHub".
129129
The link takes you not directly to GitHub, but to the local path that processes the authentication (and sends a redirect to GitHub).
130-
Once you have authenticated, you get redirected back to the local app, where it now displays your name (assuming you have set up your permissions in GitHub to allow access to that data).
130+
Once you have authenticated, you get redirected back to the local app, where it now displays your name (assuming you have set up your permissions in GitHub to allow access to that data).

0 commit comments

Comments
 (0)