Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
89acafd5
Unverified
Commit
89acafd5
authored
Apr 18, 2018
by
Carl Bergquist
Committed by
GitHub
Apr 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11646 from mjtrangoni/fix-varcheck-issues
remove unused variables detected by varcheck
parents
4ddd15d9
c1742df9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
16 deletions
+2
-16
pkg/cmd/grafana-cli/commands/remove_command.go
+2
-3
pkg/cmd/grafana-server/main.go
+0
-1
pkg/components/dashdiffs/compare.go
+0
-4
pkg/services/notifications/webhook.go
+0
-4
pkg/services/provisioning/datasources/config_reader_test.go
+0
-1
pkg/services/sqlstore/migrations/migrations_test.go
+0
-3
No files found.
pkg/cmd/grafana-cli/commands/remove_command.go
View file @
89acafd5
...
...
@@ -3,12 +3,11 @@ package commands
import
(
"errors"
"fmt"
m
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
services
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
"strings"
services
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
)
var
getPluginss
func
(
path
string
)
[]
m
.
InstalledPlugin
=
services
.
GetLocalPlugins
var
removePlugin
func
(
pluginPath
,
id
string
)
error
=
services
.
RemoveInstalledPlugin
func
removeCommand
(
c
CommandLine
)
error
{
...
...
pkg/cmd/grafana-server/main.go
View file @
89acafd5
...
...
@@ -33,7 +33,6 @@ import (
var
version
=
"5.0.0"
var
commit
=
"NA"
var
buildstamp
string
var
build_date
string
var
configFile
=
flag
.
String
(
"config"
,
""
,
"path to config file"
)
var
homePath
=
flag
.
String
(
"homepath"
,
""
,
"path to grafana install/home path, defaults to working directory"
)
...
...
pkg/components/dashdiffs/compare.go
View file @
89acafd5
...
...
@@ -6,7 +6,6 @@ import (
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/models"
diff
"github.com/yudai/gojsondiff"
deltaFormatter
"github.com/yudai/gojsondiff/formatter"
...
...
@@ -15,11 +14,8 @@ import (
var
(
// ErrUnsupportedDiffType occurs when an invalid diff type is used.
ErrUnsupportedDiffType
=
errors
.
New
(
"dashdiff: unsupported diff type"
)
// ErrNilDiff occurs when two compared interfaces are identical.
ErrNilDiff
=
errors
.
New
(
"dashdiff: diff is nil"
)
diffLogger
=
log
.
New
(
"dashdiffs"
)
)
type
DiffType
int
...
...
pkg/services/notifications/webhook.go
View file @
89acafd5
...
...
@@ -101,7 +101,3 @@ func sendWebRequestSync(ctx context.Context, webhook *Webhook) error {
webhookLog
.
Debug
(
"Webhook failed"
,
"statuscode"
,
resp
.
Status
,
"body"
,
string
(
body
))
return
fmt
.
Errorf
(
"Webhook response status %v"
,
resp
.
Status
)
}
var
addToWebhookQueue
=
func
(
msg
*
Webhook
)
{
webhookQueue
<-
msg
}
pkg/services/provisioning/datasources/config_reader_test.go
View file @
89acafd5
...
...
@@ -12,7 +12,6 @@ import (
var
(
logger
log
.
Logger
=
log
.
New
(
"fake.log"
)
oneDatasourcesConfig
string
=
""
twoDatasourcesConfig
string
=
"./test-configs/two-datasources"
twoDatasourcesConfigPurgeOthers
string
=
"./test-configs/insert-two-delete-two"
doubleDatasourcesConfig
string
=
"./test-configs/double-default"
...
...
pkg/services/sqlstore/migrations/migrations_test.go
View file @
89acafd5
...
...
@@ -8,11 +8,8 @@ import (
"github.com/grafana/grafana/pkg/services/sqlstore/sqlutil"
.
"github.com/smartystreets/goconvey/convey"
//"github.com/grafana/grafana/pkg/log"
)
var
indexTypes
=
[]
string
{
"Unknown"
,
"INDEX"
,
"UNIQUE INDEX"
}
func
TestMigrations
(
t
*
testing
.
T
)
{
testDBs
:=
[]
sqlutil
.
TestDB
{
sqlutil
.
TestDB_Sqlite3
,
...
...
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