Skip to content

Commit

Permalink
Use 'logical or' instead of turnary for correct error message display
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Apr 5, 2021
1 parent 20d0f2d commit f510187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function main() {
core.warning(
`There was an error saving the pre-commit environments to cache:
${e.message ? e.message : e}
${e.message || e}
This only has performance implications and won't change the result of your pre-commit tests.
If this problem persists on your default branch, you can try to fix it by editing your '.pre-commit-config.yaml'.
Expand Down

0 comments on commit f510187

Please sign in to comment.