diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2019-10-26 14:11:19 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2019-10-26 14:17:22 -0400 |
| commit | 1c1f0f5be4436a6454e17e166f0e950ff30b48c3 (patch) | |
| tree | 2b1cd8f7e063345235a35d11a93706f7773dd6a3 /plugins.go | |
| parent | 3dc820699130f73dd086469f1a385b60164ead33 (diff) | |
Refactor context naming to reduce confusion
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'plugins.go')
| -rw-r--r-- | plugins.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ package gomplate import ( "bytes" - gcontext "context" + "context" "errors" "fmt" "os" @@ -90,7 +90,7 @@ func (p *plugin) run(args ...interface{}) (interface{}, error) { return nil, err } - ctx, cancel := gcontext.WithTimeout(gcontext.Background(), t) + ctx, cancel := context.WithTimeout(context.Background(), t) defer cancel() c := exec.CommandContext(ctx, name, a...) c.Stdin = nil |
