Skip to content

Fix "zero sized output" bug#4

Open
mjallison42 wants to merge 1 commit into
thibseisel:mainfrom
mjallison42:main
Open

Fix "zero sized output" bug#4
mjallison42 wants to merge 1 commit into
thibseisel:mainfrom
mjallison42:main

Conversation

@mjallison42

Copy link
Copy Markdown

The example (from readme.md) produces zero sized output.

// Create a new instance of the Identicon class with an hash string and the given size
val icon = Identicon.fromValue("Hello World!", iconSize = 300)
// Writes the icon to a SVG file
Path("my-icon.svg").outputStream().use {
icon.saveAsSvg(it) // Bug in function, doesn't close a bufferedWriter
}

This PR fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant