Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
3790e86b
Commit
3790e86b
authored
Feb 10, 2016
by
Georg Hartmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use %#v instead of reflection to reveal type
parent
003fe436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
gitlab.go
gitlab.go
+1
-2
No files found.
gitlab.go
View file @
3790e86b
...
...
@@ -24,7 +24,6 @@ import (
"io/ioutil"
"net/http"
"net/url"
"reflect"
"strconv"
"strings"
...
...
@@ -348,7 +347,7 @@ func parseID(id interface{}) (string, error) {
case
string
:
return
v
,
nil
default
:
return
""
,
fmt
.
Errorf
(
"the ID must be an int or a string but is %
v"
,
reflect
.
TypeOf
(
id
)
)
return
""
,
fmt
.
Errorf
(
"the ID must be an int or a string but is %
#v"
,
id
)
}
}
...
...
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