Address JetBrains warnings; bump dependencies

This commit is contained in:
2025-12-26 19:38:21 -05:00
parent aaf69eb590
commit 88c60cc036
6 changed files with 38 additions and 33 deletions
+3 -4
View File
@@ -95,12 +95,12 @@ func editNote(baseNote []string) ([]string, bool) {
}(tempFile.Name())
// fetch the user's text editor
cfg, err := cfg.LoadConfig()
config, err := cfg.LoadConfig()
if err != nil {
other.PrintError("Failed to load libmuttoncfg.json: "+err.Error(), back.ErrorRead)
}
var editor string
if value, exists := (*cfg.ThirdParty)["mutnTextEditor"]; !exists {
if value, exists := (*config.ThirdParty)["mutnTextEditor"]; !exists {
other.PrintError("Failed to retrieve text editor from libmuttoncfg.json\n\nPlease specify one with \"mutn tweak\"", back.ErrorRead)
} else {
editor = value.(string)
@@ -165,7 +165,6 @@ func editNote(baseNote []string) ([]string, bool) {
noteLen := len(note)
if !reflect.DeepEqual(note, baseNote) && (noteLen > 0 || baseNoteLen != noteLen) {
return note, true
} else {
return nil, false
}
return nil, false
}