Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
dex
Commits
8c3dc0ca
Unverified
Commit
8c3dc0ca
authored
5 years ago
by
Mark Sagi-Kazar
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused code (fixed: unused, structcheck, deadcode linters)
parent
e0f927c7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.golangci.yml
+0
-3
0 additions, 3 deletions
.golangci.yml
connector/google/google.go
+0
-1
0 additions, 1 deletion
connector/google/google.go
server/templates.go
+0
-13
0 additions, 13 deletions
server/templates.go
with
0 additions
and
17 deletions
.golangci.yml
+
0
−
3
View file @
8c3dc0ca
...
...
@@ -16,10 +16,7 @@ linters:
-
wsl
# TODO: fix me
-
unused
-
structcheck
-
stylecheck
-
deadcode
-
misspell
-
unparam
-
goimports
...
...
This diff is collapsed.
Click to expand it.
connector/google/google.go
+
0
−
1
View file @
8c3dc0ca
...
...
@@ -105,7 +105,6 @@ type googleConnector struct {
redirectURI
string
oauth2Config
*
oauth2
.
Config
verifier
*
oidc
.
IDTokenVerifier
ctx
context
.
Context
cancel
context
.
CancelFunc
logger
log
.
Logger
hostedDomains
[]
string
...
...
This diff is collapsed.
Click to expand it.
server/templates.go
+
0
−
13
View file @
8c3dc0ca
...
...
@@ -47,19 +47,6 @@ type webConfig struct {
extra
map
[
string
]
string
}
func
join
(
base
,
path
string
)
string
{
b
:=
strings
.
HasSuffix
(
base
,
"/"
)
p
:=
strings
.
HasPrefix
(
path
,
"/"
)
switch
{
case
b
&&
p
:
return
base
+
path
[
1
:
]
case
b
||
p
:
return
base
+
path
default
:
return
base
+
"/"
+
path
}
}
func
dirExists
(
dir
string
)
error
{
stat
,
err
:=
os
.
Stat
(
dir
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment