File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -157,19 +157,19 @@ func (p *gitPlugin) FileContent(subpath string) ([]byte, error) {
157
157
return nil , err
158
158
}
159
159
160
- var bytes []byte
160
+ process := func () ([]byte , time.Duration , error ) {
161
+ var bytes []byte
161
162
162
- if p .ref .Type == flake .TypeSSH {
163
- bytes , err = p .fetchSSHArchive (location )
164
- } else {
165
- bytes , err = p .fetchHttp (location )
166
- }
163
+ if p .ref .Type == flake .TypeSSH {
164
+ bytes , err = p .fetchSSHArchive (location )
165
+ } else {
166
+ bytes , err = p .fetchHttp (location )
167
+ }
167
168
168
- if err != nil {
169
- return nil , err
170
- }
169
+ if err != nil {
170
+ return nil , 0 , err
171
+ }
171
172
172
- process := func () ([]byte , time.Duration , error ) {
173
173
// Cache for 24 hours. Once we store the plugin in the lockfile, we
174
174
// should cache this indefinitely and only invalidate if the plugin
175
175
// is updated.
You can’t perform that action at this time.
0 commit comments