1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Appease linter

This commit is contained in:
Jesse Duffield
2023-08-02 08:21:55 +10:00
parent df0c3b3ea8
commit c92ed07082
6 changed files with 21 additions and 20 deletions

View File

@ -2,7 +2,6 @@ package components
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
@ -222,7 +221,7 @@ func findOrCreateDir(path string) {
func deleteAndRecreateEmptyDir(path string) {
// remove contents of integration test directory
dir, err := ioutil.ReadDir(path)
dir, err := os.ReadDir(path)
if err != nil {
if os.IsNotExist(err) {
err = os.Mkdir(path, 0o777)