Skip to content

Commit

Permalink
fix: pymakr.conf without py_ignore would error
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed May 6, 2022
1 parent 81664f4 commit 6b655e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Device.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class Device {
const root = source;
const ignores = [...this.pymakr.config.get().get("ignore")];
const pymakrConfig = getNearestPymakrConfig(source);
if (pymakrConfig) ignores.push(...pymakrConfig.py_ignore);
if (pymakrConfig) ignores.push(...(pymakrConfig.py_ignore || []));

const isIgnore = picomatch(ignores);

Expand Down

0 comments on commit 6b655e2

Please sign in to comment.