Skip to content

Commit

Permalink
fix utf-8 casing
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Aug 25, 2020
1 parent abd3aa1 commit 6bf51bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-appsync/lib/graphqlapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ export class GraphQLApi extends GraphqlApiBase {
if ( this.schemaMode === SchemaDefinition.FILE && !file) {
throw new Error('schemaDefinitionFile must be configured if using FILE definition mode.');
} else if ( this.schemaMode === SchemaDefinition.FILE && file ) {
definition = readFileSync(file).toString('UTF-8');
definition = readFileSync(file).toString('utf-8');
} else if ( this.schemaMode === SchemaDefinition.CODE && !file ) {
definition = '';
} else if ( this.schemaMode === SchemaDefinition.CODE && file) {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-appsync/lib/mapping-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export abstract class MappingTemplate {
* Create a mapping template from the given file
*/
public static fromFile(fileName: string): MappingTemplate {
return new StringMappingTemplate(readFileSync(fileName).toString('UTF-8'));
return new StringMappingTemplate(readFileSync(fileName).toString('utf-8'));
}

/**
Expand Down

0 comments on commit 6bf51bb

Please sign in to comment.