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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user