Skip to content

Commit

Permalink
Merge sequential checks (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetrou authored and slozier committed Feb 17, 2019
1 parent 5ab5ab0 commit c29f32c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/Microsoft.Dynamic/ComInterop/IDispatchComObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private static ComTypes.ITypeInfo GetCoClassTypeInfo(object rcw, ComTypes.ITypeI
}

private void EnsureScanDefinedMethods() {
if (_comTypeDesc != null && _comTypeDesc.Funcs != null) {
if (_comTypeDesc?.Funcs != null) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions Src/Microsoft.Dynamic/zlib.net/Inflate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ internal int inflate(ZStream z, FlushStrategy flush)
{
int internalFlush = (int)flush;

if (z == null || z.istate == null || z.next_in == null)
if (z?.istate == null || z.next_in == null)
return (int)ZLibResultCode.Z_STREAM_ERROR;
int res_temp = internalFlush == (int)FlushStrategy.Z_FINISH
? (int)ZLibResultCode.Z_BUF_ERROR
Expand Down Expand Up @@ -668,4 +668,4 @@ private IEnumerable<object> StartHeaderSkipping(ZStream z) {
}
}
}
}
}

0 comments on commit c29f32c

Please sign in to comment.