.pre-commit-config.yaml: enable trailing whitespace fixer

This commit is contained in:
Aminda Suomalainen 2023-05-08 20:01:37 +03:00
parent 9da2b5dacd
commit 6360503bb8
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
exclude_types: [markdown]
- repo: https://github.com/thlorenz/doctoc
rev: v2.2.0
hooks:

View File

@ -33,7 +33,7 @@ var myip6 = function () {
// Check where myip.opendns.com resolves to and I think this is a function
// that takes arguments err and addresses.
dns.resolve6('myip.opendns.com', function (err, addresses) {
// if err contains a truthy value, an error has occurred
if (err) throw err;