mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03:00
Trim file output
This commit is contained in:
Generated
+1
-1
@@ -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
+1
-1
@@ -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