1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00

docs: fix mylib example (#1121)

This commit is contained in:
Oleksandr Redko 2024-11-14 12:45:07 +02:00 committed by GitHub
parent 0789e36cd9
commit 34e9d78df9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -702,7 +702,7 @@ func LintMyFile(file string) {
// You can use as many revivelib.Include or revivelib.Exclude as required // You can use as many revivelib.Include or revivelib.Exclude as required
) )
if err != nil { if err != nil {
panic("Shouldn't have failed: " + err.Error) panic("Shouldn't have failed: " + err.Error())
} }
// Now let's return the formatted errors // Now let's return the formatted errors