fix: remove redundant short code validation from get_original_url

This commit is contained in:
2025-12-22 15:35:18 +01:00
parent 86258332c8
commit 65570d3b6d

View File

@@ -168,10 +168,6 @@ sub create_short_url {
sub get_original_url {
my ( $self, $short_code ) = @_;
unless ( $self->_validate_short_code($short_code) ) {
return Mojo::Promise->reject('Invalid short code format');
}
return $self->db->get( $URL_PREFIX . $short_code );
}