Skip to content

Commit

Permalink
chore: add readme to example, make sure it compiles (#29)
Browse files Browse the repository at this point in the history
add readme to example, make sure it compiles
  • Loading branch information
neilkakkar authored Feb 2, 2024
1 parent fbd687c commit d793288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Running the examples

1. `go run *.go`
2 changes: 1 addition & 1 deletion examples/featureflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestIsFeatureEnabled() {
DistinctId: "hello",
})

if boolErr != nil || !boolResult {
if boolErr != nil || boolResult == nil {
fmt.Println("error:", boolErr)
return
}
Expand Down

0 comments on commit d793288

Please sign in to comment.