Skip to content

Commit

Permalink
ignore ShellCheck warning
Browse files Browse the repository at this point in the history
`calculate_move()` must be overwritten by a client implementation.  In
the 'include file' `bash-n-client`, ShellCheck correctly notes that
the `_die()` call in the boilerplate `calculate_move()` implementation
will make subsequent code unreachable.  But in this case that works as
designed, so just ignore the note.

```
./bash-n-client:103:5: note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
```
  • Loading branch information
mmitch committed Dec 17, 2023
1 parent 8983440 commit dc4006b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bash-n-client
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ _on_execute_turn()
{
local hash=$1
calculate_move
# shellcheck disable=SC2317
_send INSERT $? "$hash"
}

Expand Down

0 comments on commit dc4006b

Please sign in to comment.