summaryrefslogtreecommitdiffstats
path: root/pkg/app
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-19 09:38:49 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-19 12:12:57 +1100
commita34bdf1a046c90c22a1c0b653241b8107e89c7f9 (patch)
tree4de55d492803487a6575c976f89875744a7d3b7b /pkg/app
parentd93fef4c61db20dd9e2bb535c2fbb742cdbed60a (diff)
update linters
Diffstat (limited to 'pkg/app')
-rw-r--r--pkg/app/app.go5
-rw-r--r--pkg/app/logging_windows.go3
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go
index 0ee7e4adf..2d279936f 100644
--- a/pkg/app/app.go
+++ b/pkg/app/app.go
@@ -65,7 +65,7 @@ func newDevelopmentLogger() *logrus.Logger {
if err != nil {
log.Fatal(err)
}
- file, err := os.OpenFile(logPath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
+ file, err := os.OpenFile(logPath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o666)
if err != nil {
log.Fatalf("Unable to log to log file: %v", err)
}
@@ -269,10 +269,9 @@ func (app *App) Rebase() error {
app.Log.Info("args: ", os.Args)
if strings.HasSuffix(os.Args[1], "git-rebase-todo") {
- if err := ioutil.WriteFile(os.Args[1], []byte(os.Getenv("LAZYGIT_REBASE_TODO")), 0644); err != nil {
+ if err := ioutil.WriteFile(os.Args[1], []byte(os.Getenv("LAZYGIT_REBASE_TODO")), 0o644); err != nil {
return err
}
-
} else if strings.HasSuffix(os.Args[1], filepath.Join(gitDir(), "COMMIT_EDITMSG")) { // TODO: test
// if we are rebasing and squashing, we'll see a COMMIT_EDITMSG
// but in this case we don't need to edit it, so we'll just return
diff --git a/pkg/app/logging_windows.go b/pkg/app/logging_windows.go
index f8b3d4990..efbdfbbe1 100644
--- a/pkg/app/logging_windows.go
+++ b/pkg/app/logging_windows.go
@@ -5,11 +5,12 @@ package app
import (
"bufio"
- "github.com/aybabtme/humanlog"
"log"
"os"
"strings"
"time"
+
+ "github.com/aybabtme/humanlog"
)
func TailLogsForPlatform(logFilePath string, opts *humanlog.HandlerOptions) {