long_url is returned on shorten error.
This commit is contained in:
parent
5c64d4b30e
commit
7cfd200138
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class Bitlinks(private val accessToken: String) {
|
|||
domain: String = Constants.EMPTY,
|
||||
isJson: Boolean = false
|
||||
): String {
|
||||
var bitlink = if (isJson) "{}" else Constants.EMPTY
|
||||
var bitlink = if (isJson) "{}" else long_url
|
||||
if (!Utils.validateUrl(long_url)) {
|
||||
Utils.logger.severe("Please specify a valid URL to shorten.")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue