Skip to content

Move base normalization to RuntimeConfig - #78

Merged
jvherweg merged 1 commit into
CommunitySolidServer:masterfrom
rubensworks:refactor/base-usages
Aug 31, 2020
Merged

jvherweg merged 1 commit into
CommunitySolidServer:masterfrom
rubensworks:refactor/base-usages

Conversation

@rubensworks

Copy link
Copy Markdown
Contributor

Some small cleanup work to normalize base in RuntimeConfig, and allow variants to be retrieved.

Comment thread src/init/RuntimeConfig.ts Outdated
Comment on lines +23 to +24
public getBase(trailingSlash = true): string {
return trailingSlash ? this.pbase : trimTrailingSlashes(this.pbase);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in offline discussion, I don't think we need the trimTrailingSlashes here. It would probably be better if that part just got removed from the FileResourceStore (which is going to happen soon(tm) so I would just keep that call there for now until it's changed).

@rubensworks
rubensworks force-pushed the refactor/base-usages branch from 741356a to 49f54e8 Compare August 31, 2020 06:22
@rubensworks
rubensworks requested a review from jvherweg August 31, 2020 06:23
@jvherweg
jvherweg merged commit 3387092 into CommunitySolidServer:master Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants