1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Make it explicit when we are intentionally not checking errors

The linter complains that we're not checking for errors, but on some
cases it's on code paths were it is reasonable to do so (e.g. we're
closing the connection and it's a best-effort write).

This patch adjusts the code to make those cases explicit.
This commit is contained in:
Alberto Bertogli
2020-04-13 14:24:17 +01:00
parent aed0156579
commit d6b512166b
5 changed files with 10 additions and 10 deletions

View File

@@ -208,7 +208,7 @@ func aliasesResolve() {
if err != nil {
Fatalf("Error reading config")
}
os.Chdir(configDir)
_ = os.Chdir(configDir)
r := aliases.NewResolver()
r.SuffixSep = conf.SuffixSeparators
@@ -294,7 +294,7 @@ func aliasesAdd() {
if err != nil {
Fatalf("Error reading config")
}
os.Chdir(configDir)
_ = os.Chdir(configDir)
// Setup alias resolver.
r := aliases.NewResolver()