mirror of
https://github.com/go-task/task.git
synced 2025-04-23 12:18:57 +02:00
Delete not used function
This commit is contained in:
parent
8c5e7e89cd
commit
40b96ced43
@ -4,8 +4,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
|
||||||
|
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
@ -45,14 +43,3 @@ func readTaskfileData(path string) (tasks map[string]*Task, err error) {
|
|||||||
}
|
}
|
||||||
return nil, taskFileNotFound{path}
|
return nil, taskFileNotFound{path}
|
||||||
}
|
}
|
||||||
|
|
||||||
func exists(path string) (bool, error) {
|
|
||||||
_, err := os.Stat(path)
|
|
||||||
if err == nil {
|
|
||||||
return true, nil
|
|
||||||
}
|
|
||||||
if os.IsNotExist(err) {
|
|
||||||
return false, nil
|
|
||||||
}
|
|
||||||
return true, err
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user