Skip to content

Commit 5bc61c2

Browse files
committed
Update cache.ts
1 parent 8951535 commit 5bc61c2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cache.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ async function buildCacheKeys(): Promise<string[]> {
5959
keys.push(cacheKey)
6060
// Get working directory from input
6161
const workingDirectory = core.getInput(`working-directory`)
62-
if (!fs.existsSync(workingDirectory) || !fs.lstatSync(workingDirectory).isDirectory()) {
63-
throw new Error(`working-directory (${workingDirectory}) was not a path`)
64-
}
6562
// create path to go.mod prepending the workingDirectory if it exists
6663
const goModPath = path.join(workingDirectory, `go.mod`)
6764
core.info(`Checking for go.mod: ${goModPath}`)

0 commit comments

Comments
 (0)