summaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/repo.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index cb2e60d263..9723c85619 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -222,11 +222,7 @@ func (r *Repository) GetEditorconfig() (*editorconfig.Editorconfig, error) {
return nil, err
}
defer reader.Close()
- data, err := ioutil.ReadAll(reader)
- if err != nil {
- return nil, err
- }
- return editorconfig.ParseBytes(data)
+ return editorconfig.Parse(reader)
}
// RetrieveBaseRepo retrieves base repository