mirror of
https://github.com/github/codeql-action.git
synced 2026-04-02 17:52:19 +00:00
Trim file output
This commit is contained in:
2
lib/actions-util.js
generated
2
lib/actions-util.js
generated
@@ -402,7 +402,7 @@ const getFileType = async (filePath) => {
|
||||
},
|
||||
},
|
||||
}).exec();
|
||||
return stdout;
|
||||
return stdout.trim();
|
||||
}
|
||||
catch (e) {
|
||||
core.info(`Could not determine type of ${filePath} from ${stdout}. ${stderr}`);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -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