mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-27 05:43:59 +00:00
checked type
This commit is contained in:
parent
e2f54d3919
commit
fce8dd14a1
2 changed files with 6 additions and 2 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
verbose: true
|
||||
|
||||
test_npm:
|
||||
name: python ${{ matrix.python-version }} on ${{ matrix.os }} with node ${{ matrix.node }}
|
||||
name: node ${{ matrix.node }} with python ${{ matrix.python-version }} on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,11 @@ PythonShell.defaultOptions = {
|
|||
};
|
||||
|
||||
function clean(output) {
|
||||
return output.replaceAll('python -m ', '');
|
||||
if (typeof output === 'string' || output instanceof String)
|
||||
{
|
||||
return output.replaceAll('python -m ', '');
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
const yargs = require('yargs');
|
||||
|
|
|
|||
Loading…
Reference in a new issue