mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-21 18:49:39 +01:00
.pre-commit-config.yaml: enable trailing whitespace fixer
This commit is contained in:
parent
9da2b5dacd
commit
6360503bb8
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user