Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp committed Jan 30, 2025
1 parent 11d2133 commit 386cdc0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pkg/codegen/java/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -2327,20 +2327,20 @@ func GeneratePackage(
return nil, err
}
return files, nil
} else {
pkgName := fmt.Sprintf("%s%s", info.BasePackageOrDefault(), pkg.Name)
pkgPath := strings.ReplaceAll(pkgName, ".", "/")
}

var version string
if pkg.Version != nil {
version = pkg.Version.String()
} else {
version = "0.0.1"
}
pkgName := fmt.Sprintf("%s%s", info.BasePackageOrDefault(), pkg.Name)
pkgPath := strings.ReplaceAll(pkgName, ".", "/")

files.add("src/main/resources/"+pkgPath+"/version.txt", []byte(version))
return files, nil
var version string
if pkg.Version != nil {
version = pkg.Version.String()
} else {
version = "0.0.1"
}

files.add("src/main/resources/"+pkgPath+"/version.txt", []byte(version))
return files, nil
}

func isInputType(t schema.Type) bool {
Expand Down

0 comments on commit 386cdc0

Please sign in to comment.