Skip to content

Commit

Permalink
fix: semantic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Khertys committed Dec 6, 2023
1 parent 64e8bd9 commit 504814d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static GrpcEntitySchema Convert(IEntitySchema entitySchema)
EvolutionMode = {entitySchema.EvolutionModes.Select(EvitaEnumConverter.ToGrpcEvolutionMode)},
SortableAttributeCompounds =
{ToGrpcSortableAttributeCompoundSchemas(entitySchema.GetSortableAttributeCompounds())},
Version = entitySchema.Version,
Version = entitySchema.Version
};
}

Expand Down Expand Up @@ -345,4 +345,4 @@ private static GrpcReferenceSchema ToGrpcReferenceSchema(IReferenceSchema refere
DeprecationNotice = referenceSchema.DeprecationNotice
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public GrpcLocalCatalogSchemaMutation Convert(ILocalCatalogSchemaMutation mutati
grpcLocalCatalogSchemaMutation.RemoveEntitySchemaMutation = new RemoveEntitySchemaMutationConverter().Convert(removeEntitySchemaMutation);
break;
default:
throw new EvitaInternalError("This should never happen!");;
throw new EvitaInternalError("This should never happen!");
}
return grpcLocalCatalogSchemaMutation;
}
Expand Down Expand Up @@ -122,4 +122,4 @@ public ILocalCatalogSchemaMutation Convert(GrpcLocalCatalogSchemaMutation mutati
_ => throw new EvitaInternalError("This should never happen!")
};
}
}
}
6 changes: 6 additions & 0 deletions EvitaDB.Client/DataTypes/Data/NonSerializableDataAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace EvitaDB.Client.DataTypes.Data;

[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class NonSerializableDataAttribute : Attribute
{
}
2 changes: 1 addition & 1 deletion EvitaDB.Client/EvitaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,6 @@ private void AssertActive()
}
}

[GeneratedRegex("(\\w+:\\w+:\\w+): (.*)", RegexOptions.IgnoreCase | RegexOptions.Compiled, "en-US")]
[GeneratedRegex(@"(\w+:\w+:\w+): (.*)", RegexOptions.IgnoreCase | RegexOptions.Compiled, "en-US")]
private static partial Regex MyRegex();
}

0 comments on commit 504814d

Please sign in to comment.