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
Commits
b0679728
Unverified
Commit
b0679728
authored
Jul 13, 2017
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make codeclimate more happy
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
42b0ba34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
core/coredag/dagtransl.go
core/coredag/dagtransl.go
+5
-5
No files found.
core/coredag/dagtransl.go
View file @
b0679728
...
...
@@ -20,13 +20,13 @@ type InputEncParsers map[string]FormatParsers
// DefaultInputEncParsers is InputEncParser that is used everywhere
var
DefaultInputEncParsers
=
InputEncParsers
{
"json"
:
defaultJ
son
Parsers
,
"json"
:
defaultJ
SON
Parsers
,
"raw"
:
defaultRawParsers
,
}
var
defaultJ
son
Parsers
=
FormatParsers
{
"cbor"
:
cborJ
son
Parser
,
"dag-cbor"
:
cborJ
son
Parser
,
var
defaultJ
SON
Parsers
=
FormatParsers
{
"cbor"
:
cborJ
SON
Parser
,
"dag-cbor"
:
cborJ
SON
Parser
,
}
var
defaultRawParsers
=
FormatParsers
{
...
...
@@ -67,7 +67,7 @@ func (iep InputEncParsers) ParseInputs(ienc, format string, r io.Reader) ([]node
return
parser
(
r
)
}
func
cborJ
son
Parser
(
r
io
.
Reader
)
([]
node
.
Node
,
error
)
{
func
cborJ
SON
Parser
(
r
io
.
Reader
)
([]
node
.
Node
,
error
)
{
nd
,
err
:=
ipldcbor
.
FromJson
(
r
)
if
err
!=
nil
{
return
nil
,
err
...
...
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