@@ -266,12 +266,12 @@ func parseLineWithLookup(line string, envMap map[string]string, lookupFn LookupF
266266 firstColon := strings .Index (line , ":" )
267267 splitString := strings .SplitN (line , "=" , 2 )
268268 if firstColon != - 1 && (firstColon < firstEquals || firstEquals == - 1 ) {
269- //this is a yaml-style line
269+ // This is a yaml-style line
270270 splitString = strings .SplitN (line , ":" , 2 )
271271 }
272272
273273 if len (splitString ) != 2 {
274- err = errors .New ("Can 't separate key from value" )
274+ err = errors .New ("can 't separate key from value" )
275275 return
276276 }
277277 key = exportRegex .ReplaceAllString (splitString [0 ], "$1" )
@@ -341,15 +341,15 @@ func expandVariables(v string, envMap map[string]string, lookupFn LookupFn) stri
341341 if submatch [1 ] == "\\ " || submatch [2 ] == "(" {
342342 return submatch [0 ][1 :]
343343 } else if submatch [4 ] != "" {
344- //first check if we have defined this already earlier
344+ // first check if we have defined this already earlier
345345 if envMap [submatch [4 ]] != "" {
346346 return envMap [submatch [4 ]]
347347 }
348348 if lookupFn == nil {
349349 return ""
350350 }
351- //if we have not defined it, check the lookup function provided
352- //by the user
351+ // if we have not defined it, check the lookup function provided
352+ // by the user
353353 s2 , ok := lookupFn (submatch [4 ])
354354 if ok {
355355 return s2
0 commit comments