Skip to content

Commit a589860

Browse files
authored
Merge pull request #6 from rameel/cleanup
Clean up and formatting
2 parents cfaf4ba + e022ddd commit a589860

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
jobs:
1313
publish:
14+
if: github.repository == 'rameel/ramstack.expressionparser'
1415
name: Publish packages
1516
runs-on: ubuntu-latest
1617

src/Ramstack.ExpressionParser/Internal/TypeUtils.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ public static bool CanConvertPrimitive(Type source, Type target)
117117
if (source.IsEnum)
118118
return false;
119119

120-
if ((source == typeof(IntPtr) && target == typeof(IntPtr)) ||
121-
(source == typeof(UIntPtr) && target == typeof(UIntPtr)))
120+
if ((source == typeof(IntPtr) && target == typeof(IntPtr))
121+
|| (source == typeof(UIntPtr) && target == typeof(UIntPtr)))
122122
return true;
123123

124-
var s = PrimitiveConversions[(int)(Type.GetTypeCode(source))];
125-
var t = (Primitives)(1 << (int)(Type.GetTypeCode(target)));
124+
var s = PrimitiveConversions[(int)Type.GetTypeCode(source)];
125+
var t = (Primitives)(1 << (int)Type.GetTypeCode(target));
126126

127127
return (s & t) != 0;
128128
}

0 commit comments

Comments
 (0)