Skip to content

Commit

Permalink
chore: fix spelling error in trace and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Jul 15, 2023
1 parent 66d7047 commit c838dcd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/node-opcua-factory/source/datatype_factory.ts
Expand Up @@ -202,7 +202,7 @@ export class DataTypeFactory {
this.associateWithBinaryEncoding(className, classConstructor.encodingDefaultBinary);
} else {
// for instance in DI FetchResultDataType should be abstract but is not
warningLog("warning ", dataTypeNodeId.toString(), "name=", className, " do not have binary encoding");
warningLog("warning ", dataTypeNodeId.toString(), "name=", className, " does not have binary encoding");
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/node-opcua-schemas/source/tools.ts
Expand Up @@ -70,7 +70,7 @@ export function getOrCreateStructuredTypeSchema(
const baseSchema = typeDictionary.getStructuredTypesRawByName(structuredType.baseType);

// remove redundant fields
// Note: Some file do not have SourceType property and may be replicated here,
// Note: Some files do not have SourceType property and may be replicated here,
// but they belong to the base class and shall be removed.
// For instance, DataTypeSchemaHeader => UABinaryFileDataType
if (baseSchema && baseSchema.fields && baseSchema.name !== "ExtensionObject") {
Expand Down
Expand Up @@ -38,7 +38,7 @@ function dump_array(arr: any[]) {

export function assert_arrays_are_equal(arr1: any[], arr2: any[]) {
if (arr1.constructor.name !== arr2.constructor.name) {
throw new Error(" array do not have the same type " + arr1.constructor.name + " " + arr2.constructor.name);
throw new Error("the two arrays do not have the same type " + arr1.constructor.name + " " + arr2.constructor.name);
}
if (!_is_equal(arr1, arr2)) {
// tslint:disable-next-line:no-console
Expand Down

0 comments on commit c838dcd

Please sign in to comment.