Skip to content

Commit

Permalink
fix the build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhg committed Mar 29, 2021
1 parent 5a84cdd commit d7250ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ private ODataResourceWrapper UpdateResourceWrapper(ODataResourceWrapper resource
/// <param name="readContext">The reader context.</param>
/// <returns>The key properties.</returns>
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "<Pending>")]
private IList<ODataProperty> CreateKeyProperties(Uri id, ODataDeserializerContext readContext)
private static IList<ODataProperty> CreateKeyProperties(Uri id, ODataDeserializerContext readContext)
{
Contract.Assert(id != null);
Contract.Assert(readContext != null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@ public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates)
candidates.SetValidity(i, false);
}
}
catch (Exception ex)
catch (Exception)
{
#if DEBUG
Console.WriteLine(ex.Message);
#endif
}
}

Expand Down

0 comments on commit d7250ae

Please sign in to comment.