Skip to content

Commit

Permalink
fix(guide): correct diff after gh workflow borked it
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed Dec 13, 2023
1 parent c125ffb commit 15f30c9
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions guides/get-going-with-gitops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,28 +94,26 @@ We provide this evaluation call with a request containing the flags key, an enti
}

- bubbleSort(words)

* flag, err := s.flipt.Evaluation().Boolean(r.Context(), &evaluation.EvaluationRequest{
* FlagKey: "use-quicksort-algorithm",
* EntityId: getUser(r.Context()),
* Context: map[string]string{
* "organization": getOrganization(r.Context()),
* },
* })
*
* if flag.Enabled {
* quicksort(words)
* } else {
* bubblesort(words)
* }

if err := json.NewEncoder(w).Encode(words); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
}

````
+ flag, err := s.flipt.Evaluation().Boolean(r.Context(), &evaluation.EvaluationRequest{

Check failure on line 97 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+` with `⏎*`
+ FlagKey: "use-quicksort-algorithm",

Check failure on line 98 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+··` with `*`
+ EntityId: getUser(r.Context()),

Check failure on line 99 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+··` with `*`
+ Context: map[string]string{

Check failure on line 100 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+··` with `*`
+ "organization": getOrganization(r.Context()),

Check failure on line 101 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+` with `*`
+ },

Check failure on line 102 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+··` with `*`
+ })

Check failure on line 103 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+` with `*`
+

Check failure on line 104 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+` with `*`
+ if flag.Enabled {

Check failure on line 105 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+` with `*`
+ quicksort(words)

Check failure on line 106 in guides/get-going-with-gitops.mdx

View workflow job for this annotation

GitHub Actions / lint

Replace `+··` with `*`
+ } else {
+ bubblesort(words)
+ }

if err := json.NewEncoder(w).Encode(words); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
}
```

```go pkg/server/words.go
func (s *Server) ListWords(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 15f30c9

Please sign in to comment.