Skip to content

Commit e272fa0

Browse files
committed
Remove redundant bind and return
1 parent 81e84c2 commit e272fa0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ShellCheck/Parser.hs

+1-2
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ startSpan = IncompleteInterval <$> getPosition
209209

210210
endSpan (IncompleteInterval start) = do
211211
endPos <- getPosition
212-
id <- getNextIdBetween start endPos
213-
return id
212+
getNextIdBetween start endPos
214213

215214
getSpanPositionsFor m = do
216215
start <- getPosition

0 commit comments

Comments
 (0)