Skip to content

Commit

Permalink
fix(account_repository): Include subpaths in human readable Account ID
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Oct 10, 2024
1 parent d954c18 commit 0449141
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ abstract class Credentials implements Built<Credentials, CredentialsBuilder> {
/// A human readable representation of [username] and [serverURL].
@memoized
String get humanReadableID {
// Maybe also show path if it is not '/' ?
final buffer = StringBuffer()
..write(username)
..write('@')
Expand All @@ -55,6 +54,9 @@ abstract class Credentials implements Built<Credentials, CredentialsBuilder> {
..write(':')
..write(serverURL.port);
}
if (serverURL.path.isNotEmpty) {
buffer.write(serverURL.path);
}

return buffer.toString();
}
Expand Down

0 comments on commit 0449141

Please sign in to comment.