mirror of
https://github.com/go-task/task.git
synced 2025-01-26 05:27:15 +02:00
cleanp taskfile reader
This commit is contained in:
parent
b8094fd771
commit
93005512b4
@ -13,11 +13,6 @@ type Taskfile struct {
|
||||
|
||||
// UnmarshalYAML implements yaml.Unmarshaler interface
|
||||
func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
if err := unmarshal(&tf.Tasks); err == nil {
|
||||
tf.Version = "1"
|
||||
return nil
|
||||
}
|
||||
|
||||
var taskfile struct {
|
||||
Version string
|
||||
Expansions int
|
||||
|
Loading…
x
Reference in New Issue
Block a user