Skip to content

Commit 669ec58

Browse files
committed
trim whitespace when reading version
1 parent 8e5a437 commit 669ec58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/common/base-indexer-engine-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export abstract class IIndexerEngineService {
2121
filePath: string,
2222
): Promise<string | null> {
2323
return readFile(join(__dirname, filePath), 'utf-8')
24-
.then((data) => data)
24+
.then((data) => data.trim())
2525
.catch((error) => {
2626
if (error.code === 'ENOENT') {
2727
return null;

0 commit comments

Comments
 (0)