All files / path / _common / normalize.ts

100.00% Branches 1/1
100.00% Lines 5/5
1
2
3
4
5
6
7
8
9
 
 
 
x63
 
x63
x1991
x1991
x1991







// Copyright 2018-2025 the Deno authors. MIT license.
// This module is browser compatible.

import { assertPath } from "./assert_path.ts";

export function assertArg(path: string) {
  assertPath(path);
  if (path.length === 0) return ".";
}