Skip to content

Commit

Permalink
fix codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simskij committed Apr 21, 2019
1 parent 5314ee9 commit 2a0933c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
</a>
</p>


### Using Shoutrrr


Using shoutrrr is as easy as:

```
Expand All @@ -54,7 +52,6 @@ Using shoutrrr is as easy as:

If you've provided the environment variable `SHOUTRRR_URL`, you may instead use


```
err := shoutrrr.SendEnv("Hello world (or slack channel) !")
```
Expand Down
10 changes: 5 additions & 5 deletions pkg/plugins/pushover/pushover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ func TestPushover(t *testing.T) {
}

var (
plugin *pushover.PushoverPlugin
envPushoverUrl string
plugin *pushover.PushoverPlugin
envPushoverURL string
)
var _ = Describe("the pushover plugin", func() {
BeforeSuite(func() {
plugin = &pushover.PushoverPlugin{}
envPushoverUrl = os.Getenv("SHOUTRRR_PUSHOVER_URL")
envPushoverURL = os.Getenv("SHOUTRRR_PUSHOVER_URL")
})
When("running integration tests", func() {
It("should work", func() {
if envPushoverUrl == "" {
if envPushoverURL == "" {
return
}
err := plugin.Send(envPushoverUrl, "this is an integration test")
err := plugin.Send(envPushoverURL, "this is an integration test")
Expect(err).NotTo(HaveOccurred())
})
})
Expand Down

0 comments on commit 2a0933c

Please sign in to comment.