Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into feature/add-objec…
Browse files Browse the repository at this point in the history
…t-enum
  • Loading branch information
Felipe dos Santos committed Apr 6, 2020
2 parents cd18e59 + add66cf commit 6bcce87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/helpers/file-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const writeFile = async (outputDirectory: string, fileName: string, fileC
};

export const readFile = async (filePath: string): Promise<any> => {
return await readfileFromFS(filePath, 'utf-8');
return readfileFromFS(filePath, 'utf-8');
};

export const deleteFolder = async (directoryPath: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/helpers/svg-optimization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const generateSvgOptimizer = config => new svgo(config);

export const getSvgoConfig = async (svgoConfig: any): Promise<string> => {
if (typeof svgoConfig === 'string') {
return await readFile(svgoConfig);
return readFile(svgoConfig);
}
return svgoConfig;
};
2 changes: 1 addition & 1 deletion src/lib/options/convertion-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export const getOptions = async (): Promise<MultiFileConvertionOptions | SingleF
info(
'No configuration found in package.json nor rc file - checking for arguments and applying defaults (see --help)'
);
return await collectArgumentOptions();
return collectArgumentOptions();
};

0 comments on commit 6bcce87

Please sign in to comment.