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
4c6e4e2a
Commit
4c6e4e2a
authored
May 07, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fixed gometalinter issues with Discord PR
parent
23738ad4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
pkg/services/alerting/notifiers/discord.go
+4
-2
No files found.
pkg/services/alerting/notifiers/discord.go
View file @
4c6e4e2a
...
@@ -91,8 +91,7 @@ func (this *DiscordNotifier) Notify(evalContext *alerting.EvalContext) error {
...
@@ -91,8 +91,7 @@ func (this *DiscordNotifier) Notify(evalContext *alerting.EvalContext) error {
embed
.
Set
(
"fields"
,
fields
)
embed
.
Set
(
"fields"
,
fields
)
embed
.
Set
(
"footer"
,
footer
)
embed
.
Set
(
"footer"
,
footer
)
var
image
=
make
(
map
[
string
]
interface
{})
var
image
map
[
string
]
interface
{}
var
embeddedImage
=
false
var
embeddedImage
=
false
if
evalContext
.
ImagePublicUrl
!=
""
{
if
evalContext
.
ImagePublicUrl
!=
""
{
...
@@ -141,6 +140,9 @@ func (this *DiscordNotifier) Notify(evalContext *alerting.EvalContext) error {
...
@@ -141,6 +140,9 @@ func (this *DiscordNotifier) Notify(evalContext *alerting.EvalContext) error {
}
}
fw
,
err
=
w
.
CreateFormFile
(
"file"
,
"graph.png"
)
fw
,
err
=
w
.
CreateFormFile
(
"file"
,
"graph.png"
)
if
err
!=
nil
{
return
err
}
if
_
,
err
=
io
.
Copy
(
fw
,
f
);
err
!=
nil
{
if
_
,
err
=
io
.
Copy
(
fw
,
f
);
err
!=
nil
{
return
err
return
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