mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 02:00:12 +08:00
Trim file output
This commit is contained in:
@@ -452,7 +452,7 @@ export const getFileType = async (filePath: string): Promise<string> => {
|
||||
},
|
||||
},
|
||||
).exec();
|
||||
return stdout;
|
||||
return stdout.trim();
|
||||
} catch (e) {
|
||||
core.info(
|
||||
`Could not determine type of ${filePath} from ${stdout}. ${stderr}`,
|
||||
|
||||
Reference in New Issue
Block a user