mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
Apply suggestions from code review
Co-authored-by: Tom Hvitved <hvitved@github.com>
This commit is contained in:
@@ -271,7 +271,7 @@ namespace Semmle.Extraction.CIL.Entities
|
||||
foreach (var handle in td.GetFields())
|
||||
{
|
||||
var field = Cx.MdReader.GetFieldDefinition(handle);
|
||||
if ((field.Attributes & FieldAttributes.Static) != 0)
|
||||
if (field.Attributes.HasFlag(FieldAttributes.Static))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ class Enum extends ValueOrRefType {
|
||||
override IntegralType getUnderlyingType() {
|
||||
cil_enum_underlying_type(this, result)
|
||||
or
|
||||
not exists(IntegralType underlying | cil_enum_underlying_type(this, underlying)) and
|
||||
result = any(IntType i)
|
||||
not cil_enum_underlying_type(this, _) and
|
||||
result instanceof IntType
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user