File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
lib/live_view_native/swiftui/rules_parser/parser Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ defmodule LiveViewNative.SwiftUI.RulesParser.Parser.Error do
22
22
error_message ,
23
23
opts \\ [ ]
24
24
) do
25
- # IO.inspect({args, rest, error_message}, label: "error[0]")
26
-
27
25
error = % __MODULE__ {
28
26
incorrect_text: List . first ( args , "" ) ,
29
27
line: line ,
@@ -48,10 +46,10 @@ defmodule LiveViewNative.SwiftUI.RulesParser.Parser.Error do
48
46
# Never treat error as warning
49
47
Context . put_new_error ( context , rest , error )
50
48
51
- warning ->
49
+ optional_warning_key ->
52
50
# The error is an optional warning
53
51
# Only log the warning if value in `context[<key>]` is true
54
- if get_in ( context , [ Access . key ( warning ) ] ) == true do
52
+ if get_in ( context , [ Access . key ( optional_warning_key ) ] ) == true do
55
53
Context . put_new_error ( context , rest , % { error | is_warning?: true } )
56
54
else
57
55
context
You can’t perform that action at this time.
0 commit comments