Skip to content

Commit 94e09db

Browse files
committed
Cleanup
1 parent 0c2120b commit 94e09db

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CodeJam.sln.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=HeapView_002EClosureAllocation/@EntryIndexedValue">DO_NOT_SHOW</s:String>
1313
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=HeapView_002EObjectAllocation_002EEvident/@EntryIndexedValue">DO_NOT_SHOW</s:String>
1414
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InvertIf/@EntryIndexedValue">DO_NOT_SHOW</s:String>
15+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InvocationIsSkipped/@EntryIndexedValue">DO_NOT_SHOW</s:String>
1516
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=LoopCanBeConvertedToQuery/@EntryIndexedValue">DO_NOT_SHOW</s:String>
1617
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantArgumentDefaultValue/@EntryIndexedValue">DO_NOT_SHOW</s:String>
1718
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ReturnTypeCanBeEnumerable_002EGlobal/@EntryIndexedValue">DO_NOT_SHOW</s:String>

Main/src/Ranges/CompositeRange.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace CodeJam.Ranges
66
{
77
/// <summary>Helper methods for the <seealso cref="CompositeRange{T}"/>.</summary>
8+
[PublicAPI]
89
public static partial class CompositeRange
910
{
1011
/// <summary>Creates the composite range.</summary>

Main/src/Ranges/Range.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static Range<T> TryCreate<T>(RangeBoundaryFrom<T> from, RangeBoundaryTo<T
200200
private static Range<T> TryCreateCore<T>(
201201
T from, RangeBoundaryFromKind fromKind,
202202
T to, RangeBoundaryToKind toKind) =>
203-
(RangeBoundaryFrom<T>.IsValid(from) && RangeBoundaryTo<T>.IsValid(to))
203+
RangeBoundaryFrom<T>.IsValid(from) && RangeBoundaryTo<T>.IsValid(to)
204204
? TryCreate(
205205
RangeBoundaryFrom<T>.AdjustAndCreate(from, fromKind),
206206
RangeBoundaryTo<T>.AdjustAndCreate(to, toKind))
@@ -226,7 +226,7 @@ private static Range<T, TKey> TryCreateCore<T, TKey>(
226226
T from, RangeBoundaryFromKind fromKind,
227227
T to, RangeBoundaryToKind toKind,
228228
TKey key) =>
229-
(RangeBoundaryFrom<T>.IsValid(from) && RangeBoundaryTo<T>.IsValid(to))
229+
RangeBoundaryFrom<T>.IsValid(from) && RangeBoundaryTo<T>.IsValid(to)
230230
? TryCreate(
231231
RangeBoundaryFrom<T>.AdjustAndCreate(from, fromKind),
232232
RangeBoundaryTo<T>.AdjustAndCreate(to, toKind),

Main/src/Reflection/ReflectionExtensions.MetadataAttributes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ public static partial class ReflectionExtensions
2020
private sealed class TypeTypeHandleComparer : IEqualityComparer<Type>
2121
{
2222
public bool Equals(Type x, Type y) =>
23-
x == null ? y == null : (y != null && x.TypeHandle.Equals(y.TypeHandle));
23+
x == null ? y == null : y != null && x.TypeHandle.Equals(y.TypeHandle);
2424

2525
public int GetHashCode(Type obj) => obj?.TypeHandle.GetHashCode() ?? 0;
2626
}
2727

2828
private sealed class MethodMethodHandleComparer : IEqualityComparer<MethodInfo>
2929
{
3030
public bool Equals(MethodInfo x, MethodInfo y) =>
31-
x == null ? y == null : (y != null && x.MethodHandle.Equals(y.MethodHandle));
31+
x == null ? y == null : y != null && x.MethodHandle.Equals(y.MethodHandle);
3232

3333
public int GetHashCode(MethodInfo obj) => obj?.MethodHandle.GetHashCode() ?? 0;
3434
}

0 commit comments

Comments
 (0)