diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-28 15:11:50 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-28 15:11:50 +0530 |
commit | c980c898de8417e16942741d469ebef8532b822a (patch) | |
tree | cc0639b9bbe45bb7ff89fe3a956c0619f3d943b2 /passgen/diceware/src/main | |
parent | de6cdfee0e37aab03bfb91e5e90c3ec4bd740fe3 (diff) |
chore: reformat with trailing commas changes
Diffstat (limited to 'passgen/diceware/src/main')
-rw-r--r-- | passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/DicewarePassphraseGenerator.kt | 5 | ||||
-rw-r--r-- | passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/Die.kt | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/DicewarePassphraseGenerator.kt b/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/DicewarePassphraseGenerator.kt index 841eb31b..36d7e600 100644 --- a/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/DicewarePassphraseGenerator.kt +++ b/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/DicewarePassphraseGenerator.kt @@ -14,10 +14,7 @@ import javax.inject.Inject */ public class DicewarePassphraseGenerator @Inject -constructor( - private val die: Die, - wordList: InputStream, -) { +constructor(private val die: Die, wordList: InputStream) { private val wordMap = WordListParser.parse(wordList) diff --git a/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/Die.kt b/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/Die.kt index e3db4b80..c93fc40f 100644 --- a/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/Die.kt +++ b/passgen/diceware/src/main/kotlin/app/passwordstore/passgen/diceware/Die.kt @@ -10,10 +10,7 @@ import javax.inject.Inject /** Basic implementation of a die with configurable number of sides. */ public class Die @Inject -constructor( - private val sides: Int, - private val random: RandomIntGenerator, -) { +constructor(private val sides: Int, private val random: RandomIntGenerator) { /** Roll the die to return a single number. */ public fun roll(): Int { |