Skip to content

Commit 9d615c7

Browse files
committed
Add missing check.
1 parent 795fbcb commit 9d615c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/Nitpick/Debug.hs

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ where
55

66
import AST.Optimized qualified as Opt
77
import Data.Map.Utils qualified as Map
8+
import Data.Maybe qualified as Maybe
89

910
-- HAS DEBUG USES
1011

@@ -26,6 +27,7 @@ nodeHasDebug node =
2627
Opt.Kernel _ _ -> False
2728
Opt.PortIncoming expr _ -> hasDebug expr
2829
Opt.PortOutgoing expr _ -> hasDebug expr
30+
Opt.PortTask maybeExpr expr _ -> hasDebug expr || Maybe.maybe False hasDebug maybeExpr
2931

3032
hasDebug :: Opt.Expr -> Bool
3133
hasDebug expression =

0 commit comments

Comments
 (0)