Skip to content

Commit

Permalink
Fix typos in readme (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: sberlin <sberlin@users.noreply.github.com>
  • Loading branch information
sberlin and sberlin committed Apr 22, 2023
1 parent 972d43a commit 2ceccc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The following dependency needs to be added to the springboot project pom.
### Add the following to application.yaml
```yaml
io:
getunleashed:
getunleash:
app-name: <application-name>
instance-id: <instance-id>
environment: <environment>
Expand All @@ -29,7 +29,7 @@ io:
ex:
```yaml
io:
getunleashed:
getunleash:
app-name: springboot-test
instance-id: instance x
environment: development
Expand All @@ -49,7 +49,7 @@ public UnleashContextProvider unleashContextProvider(final UnleashProperties unl
UnleashContext.Builder builder = UnleashContext.builder();
Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
if (principal instanceof User) {
builder.userId((((User)principal).getUsername());
builder.userId(((User)principal).getUsername());
}

return builder
Expand Down

0 comments on commit 2ceccc9

Please sign in to comment.