Skip to content

Commit

Permalink
Optional doesn't need to be set to true anymore, true is default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisBourre committed Sep 29, 2017
1 parent ba51073 commit 39e872f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hex/di/annotation/ReflectionBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ReflectionBuilder
//injectionName
{field: "n", expr: macro $v { key == null?"":key }},
//isOptional
{field: "o", expr: macro $v{isOpt==null?false:isOpt}}
{field: "o", expr: macro $v{isOpt==null?true:isOpt}}
]);
propValues.push( {expr: eProp, pos:Context.currentPos()} );
}
Expand All @@ -96,7 +96,7 @@ class ReflectionBuilder
//injectionName
{field: "n", expr: macro $v { key == null?"":key }},
//isOptional
{field: "o", expr: macro $v{isOpt==null?false:isOpt}}
{field: "o", expr: macro $v{isOpt==null?true:isOpt}}
]);

argValues.push( { expr: eArg, pos:Context.currentPos() } );
Expand Down Expand Up @@ -170,7 +170,7 @@ class ReflectionBuilder
//injectionName
{field: "n", expr: macro $v { key == null?"":key }},
//isOptional
{field: "o", expr: macro $v{isOpt == null?false:isOpt}}
{field: "o", expr: macro $v{isOpt == null?true:isOpt}}
]);

ctorArgValues.push( { expr: eCtorArg, pos:Context.currentPos() } );
Expand Down

0 comments on commit 39e872f

Please sign in to comment.