Skip to content

Commit

Permalink
fix: report card issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dnitsch committed May 19, 2022
1 parent 52d8ce1 commit 1af0cf6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENCE
Version 3.1, July 2019

by Sam Hocevar <sam@hocevar.net>
theiostream <matoe@matoe.co.cc>
dtf <wtfpl@dtf.wtf>

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENCE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
2 changes: 1 addition & 1 deletion cmd/configmanager/configmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
os.Exit(1)
}

// Conver to ExportVars
// Conver to ExportVars
gv.ConvertToExportVar()

f, err := gv.FlushToFile()
Expand Down
2 changes: 1 addition & 1 deletion configmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/dnitsch/configmanager/pkg/generator"
)

// Retrieve gets a rawMap from a set implementaion
// Retrieve gets a rawMap from a set implementation
// will be empty if no matches found
func Retrieve(tokens []string, config generator.GenVarsConfig) (generator.ParsedMap, error) {
gv := generator.New()
Expand Down
2 changes: 1 addition & 1 deletion pkg/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ func (c *genVars) retrieveSpecific(prefix, in string) (string, error) {
func isParsed(res interface{}, trm *ParsedMap) bool {
str := fmt.Sprint(res)
if err := json.Unmarshal([]byte(str), &trm); err != nil {
log.Infof("Err = %v", err)
log.Info("unable to parse into a k/v map returning a string instead")
return false
}
log.Info("parsed into a k/v map")
return true
}

Expand Down

0 comments on commit 1af0cf6

Please sign in to comment.