refactor: remove unnecessary fn calls in path utils

pull/5246/head
Arman Ozak 5 years ago
parent 49ccc4dbde
commit fc2f1ecfc6

@ -3,12 +3,12 @@ import { kebab } from './text';
export function relativePathToEnum(namespace: string, enumNamespace: string, enumName: string) {
const path = calculateRelativePath(namespace, enumNamespace);
return removeDoubleSlash(path + `/${kebab(enumName)}.enum`);
return path + `/${kebab(enumName)}.enum`;
}
export function relativePathToModel(namespace: string, modelNamespace: string) {
const path = calculateRelativePath(namespace, modelNamespace);
return removeTrailingSlash(path + '/models');
return path + '/models';
}
function calculateRelativePath(ns1: string, ns2: string) {

Loading…
Cancel
Save