diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/util/Base64Util.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/util/Base64Util.kt | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/util/Base64Util.kt b/src/main/kotlin/moe/nea/firmament/util/Base64Util.kt deleted file mode 100644 index 44bcdfd..0000000 --- a/src/main/kotlin/moe/nea/firmament/util/Base64Util.kt +++ /dev/null @@ -1,10 +0,0 @@ - -package moe.nea.firmament.util - -object Base64Util { - fun String.padToValidBase64(): String { - val align = this.length % 4 - if (align == 0) return this - return this + "=".repeat(4 - align) - } -} |