Skip to content

Commit

Permalink
💡 Update convert comments
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Gleich <git@mattglei.ch>
  • Loading branch information
gleich committed Feb 20, 2021
1 parent 2e35e36 commit 42280ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/api/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func convertPulse(pulse Pulse) (string, log.CtxErr) {
Labels: &labels,
}

// Marsheling the data
// Marshaling the data
jsonData, err := jsonMarshal(finalData)
if err.Error != nil {
return "", err
Expand All @@ -46,7 +46,6 @@ func convertPulse(pulse Pulse) (string, log.CtxErr) {

// Light wrapper around json.Marhal for consistent errors
func jsonMarshal(data interface{}) (string, log.CtxErr) {
// Marshaling data
str, err := json.Marshal(data)
if err != nil {
return "", log.CtxErr{
Expand Down

0 comments on commit 42280ba

Please sign in to comment.