Skip to content

Commit

Permalink
update linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed Feb 23, 2024
1 parent 6ebbcf7 commit a023e27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Config struct {
SlackWebhook string
SlackTitle string
SlackMessage string
SlackIconUrl string
SlackIconURL string
SlackChannel string
SlackColor string
SlackUsername string
Expand Down Expand Up @@ -45,7 +45,7 @@ func (config *Config) Init() error {
}

// Setting unrequired environment variables
config.SlackIconUrl = os.Getenv("SLACK_ICON")
config.SlackIconURL = os.Getenv("SLACK_ICON")
config.SlackChannel = os.Getenv("SLACK_CHANNEL")
config.SlackColor = os.Getenv("SLACK_COLOR")
config.SlackUsername = os.Getenv("SLACK_USERNAME")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
SLACK_MESSAGE: Demo'ing the Slack Notification
SLACK_TITLE: Slack Notification Demo
SLACK_USERNAME: demo-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package main

import (
"github.com/pkg/errors"
"github.com/senzing/git-action-slack-notification/configuration"
"log"
"bytes"
"encoding/json"
"fmt"
"github.com/pkg/errors"
"github.com/senzing/git-action-slack-notification/configuration"
"log"
"net/http"
)

Expand Down

0 comments on commit a023e27

Please sign in to comment.