Skip to content

Commit

Permalink
Fix for coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
krymtkts committed Jan 25, 2025
1 parent bd6976c commit 09b7974
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pocof/Data.fs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,10 @@ module Data =

let getCurrentProperty (state: QueryState) =
let s =
state.Query |> String.upToIndex state.Cursor |> String.split " " |> Array.last
state.Query
|> String.upToIndex state.Cursor
|> String.split " "
|> (fun arr -> arr.[arr.Length - 1]) // NOTE: to avoid unreachable step in Array.last.

#if DEBUG
Logger.LogFile [ $"Query '{state.Query}' Cursor '{state.Cursor}' string '{s}'" ]
Expand Down

0 comments on commit 09b7974

Please sign in to comment.