// Copyright 2018-2024 the Deno authors. All rights reserved. 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 ".";
}

// denoCacheMetadata={"headers":{"alt-svc":"h3=\":443\"; ma=86400","etag":"\"99de9b3a5dbad98f43d09b2cc6eecd0f\"","access-control-allow-origin":"*","cf-cache-status":"HIT","age":"4275755","content-type":"text/typescript","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","x-content-type-options":"nosniff","set-cookie":"__cf_bm=rwgBvzQL0_3WyPTHRFoeiKHFNwF4gMsMC53cN_sqtBA-1785241875.2942584-1.0.1.1-GoAxRpboio92tDm4u9T85d347cmM9PIETvAeyeEODbw9ZbxOk2sGwwEBAu_OdigQDyrSq.M4Qnq1XIdhVKvXJLURkCZrLycuzcR_.4cAmwCD6UBP2gFKQkQHyT5gxBAa; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","vary":"Origin","x-jsr-backend":"modules","cross-origin-resource-policy":"cross-origin","cache-control":"public, max-age=31536000, immutable","content-length":"263","date":"Tue, 28 Jul 2026 12:31:15 GMT","accept-ranges":"bytes","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=oNvBSwI0z4HBSfOf9VEv8zaghPaKPFJMjbWTRwrY4YjdPjo2ztUQtb0yZHnWJx9%2FreaQvJbWUZQg9t60Sw%2F%2FT%2FsM03pSdqpd8wygkf7T5Mf%2FV8YKkL%2BgLGs%3D\"}]}","x-robots-tag":"noindex","access-control-expose-headers":"*","server":"cloudflare","cf-ray":"a223e6589cc97db6-LAX","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},"url":"https://jsr.io/@std/path/0.224.0/_common/normalize.ts","time":1785241875}