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
d17025fb
Unverified
Commit
d17025fb
authored
Oct 13, 2018
by
Torkel Ödegaard
Committed by
GitHub
Oct 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13631 from mjtrangoni/fix-megacheck-issues
Fix trivial megacheck issues
parents
7051a150
74533a7a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
pkg/services/alerting/notifiers/telegram.go
+7
-1
pkg/services/sqlstore/user_auth_test.go
+0
-2
pkg/tsdb/mssql/mssql_test.go
+1
-1
pkg/tsdb/mysql/mysql_test.go
+1
-1
pkg/tsdb/postgres/postgres_test.go
+1
-1
No files found.
pkg/services/alerting/notifiers/telegram.go
View file @
d17025fb
...
...
@@ -127,7 +127,13 @@ func (this *TelegramNotifier) buildMessageInlineImage(evalContext *alerting.Eval
var
err
error
imageFile
,
err
=
os
.
Open
(
evalContext
.
ImageOnDiskPath
)
defer
imageFile
.
Close
()
defer
func
()
{
err
:=
imageFile
.
Close
()
if
err
!=
nil
{
log
.
Error2
(
"Could not close Telegram inline image."
,
"err"
,
err
)
}
}()
if
err
!=
nil
{
return
nil
,
err
}
...
...
pkg/services/sqlstore/user_auth_test.go
View file @
d17025fb
...
...
@@ -16,7 +16,6 @@ func TestUserAuth(t *testing.T) {
Convey
(
"Given 5 users"
,
t
,
func
()
{
var
err
error
var
cmd
*
m
.
CreateUserCommand
users
:=
[]
m
.
User
{}
for
i
:=
0
;
i
<
5
;
i
++
{
cmd
=
&
m
.
CreateUserCommand
{
Email
:
fmt
.
Sprint
(
"user"
,
i
,
"@test.com"
),
...
...
@@ -25,7 +24,6 @@ func TestUserAuth(t *testing.T) {
}
err
=
CreateUser
(
context
.
Background
(),
cmd
)
So
(
err
,
ShouldBeNil
)
users
=
append
(
users
,
cmd
.
Result
)
}
Reset
(
func
()
{
...
...
pkg/tsdb/mssql/mssql_test.go
View file @
d17025fb
...
...
@@ -692,7 +692,7 @@ func TestMSSQL(t *testing.T) {
},
}
resp
,
err
:=
endpoint
.
Query
(
nil
,
nil
,
query
)
resp
,
err
:=
endpoint
.
Query
(
context
.
Background
()
,
nil
,
query
)
So
(
err
,
ShouldBeNil
)
queryResult
:=
resp
.
Results
[
"A"
]
So
(
queryResult
.
Error
,
ShouldBeNil
)
...
...
pkg/tsdb/mysql/mysql_test.go
View file @
d17025fb
...
...
@@ -769,7 +769,7 @@ func TestMySQL(t *testing.T) {
},
}
resp
,
err
:=
endpoint
.
Query
(
nil
,
nil
,
query
)
resp
,
err
:=
endpoint
.
Query
(
context
.
Background
()
,
nil
,
query
)
So
(
err
,
ShouldBeNil
)
queryResult
:=
resp
.
Results
[
"A"
]
So
(
queryResult
.
Error
,
ShouldBeNil
)
...
...
pkg/tsdb/postgres/postgres_test.go
View file @
d17025fb
...
...
@@ -701,7 +701,7 @@ func TestPostgres(t *testing.T) {
},
}
resp
,
err
:=
endpoint
.
Query
(
nil
,
nil
,
query
)
resp
,
err
:=
endpoint
.
Query
(
context
.
Background
()
,
nil
,
query
)
So
(
err
,
ShouldBeNil
)
queryResult
:=
resp
.
Results
[
"A"
]
So
(
queryResult
.
Error
,
ShouldBeNil
)
...
...
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