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
cd8868d1
Commit
cd8868d1
authored
Jan 06, 2015
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Fixed panic when marshalers gave nil output
parent
b74f5b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
response.go
response.go
+8
-1
No files found.
response.go
View file @
cd8868d1
...
...
@@ -160,7 +160,14 @@ func (r *response) Marshal() (io.Reader, error) {
}
}
return
marshaller
(
r
)
output
,
err
:=
marshaller
(
r
)
if
err
!=
nil
{
return
nil
,
err
}
if
output
==
nil
{
return
bytes
.
NewReader
([]
byte
{}),
nil
}
return
output
,
nil
}
// Reader returns an `io.Reader` representing marshalled output of this Response
...
...
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