mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Appease linter
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user