Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
72872208
Commit
72872208
authored
Jan 06, 2015
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Removed unused cleanup function
parent
9ad97fa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
command.go
command.go
+0
-8
request.go
request.go
+0
-6
No files found.
command.go
View file @
72872208
...
...
@@ -135,14 +135,6 @@ func (c *Command) Call(req Request) Response {
}
}
// clean up the request (close the readers, e.g. fileargs)
// NOTE: this means commands can't expect to keep reading after cmd.Run returns (in a goroutine)
err
=
req
.
Cleanup
()
if
err
!=
nil
{
res
.
SetError
(
err
,
ErrNormal
)
return
res
}
res
.
SetOutput
(
output
)
return
res
}
...
...
request.go
View file @
72872208
...
...
@@ -70,7 +70,6 @@ type Request interface {
Context
()
*
Context
SetContext
(
Context
)
Command
()
*
Command
Cleanup
()
error
ConvertOptions
()
error
}
...
...
@@ -174,11 +173,6 @@ func (r *request) Command() *Command {
return
r
.
cmd
}
func
(
r
*
request
)
Cleanup
()
error
{
// TODO
return
nil
}
type
converter
func
(
string
)
(
interface
{},
error
)
var
converters
=
map
[
reflect
.
Kind
]
converter
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment