Skip to content

Commit

Permalink
check formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt committed Nov 8, 2023
1 parent 182f985 commit fcdb5df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ jobs:
- name: Initialize wake
run: wake --init .

- name: Check formatting
run: wake-format --dry-run --auto

- name: Run basic test
run: wake --in query -x 'single 5'
6 changes: 2 additions & 4 deletions json.wake
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ from query export def QueryError makeQueryError

def lookup (selectFn: a => Boolean): (list: List (Pair a b)) => List b =
def select (Pair key value) =
if selectFn key then
Some value
else
None
if selectFn key then Some value
else None

mapPartial select

Expand Down

0 comments on commit fcdb5df

Please sign in to comment.