Skip to content

Commit 9444f3c

Browse files
committed
chore: fix lint error
1 parent 2adc9cc commit 9444f3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/functions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func init() {
125125
functionsServeCmd.Flags().StringVar(&envFilePath, "env-file", "", "Path to an env file to be populated to the Function environment.")
126126
functionsServeCmd.Flags().StringVar(&importMapPath, "import-map", "", "Path to import map file.")
127127
functionsServeCmd.Flags().Bool("all", true, "Serve all functions (caution: Experimental feature)")
128-
functionsServeCmd.Flags().MarkHidden("all")
128+
cobra.CheckErr(functionsServeCmd.Flags().MarkHidden("all"))
129129
functionsDownloadCmd.Flags().StringVar(&projectRef, "project-ref", "", "Project ref of the Supabase project.")
130130
functionsCmd.AddCommand(functionsDeleteCmd)
131131
functionsCmd.AddCommand(functionsDeployCmd)

internal/functions/serve/serve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestServeCommand(t *testing.T) {
6060
Delete("/v" + utils.Docker.ClientVersion() + "/containers/" + containerId).
6161
Reply(http.StatusOK)
6262
apitest.MockDockerStart(utils.Docker, utils.GetRegistryImageUrl(utils.EdgeRuntimeImage), containerId)
63-
apitest.MockDockerLogs(utils.Docker, containerId, "success")
63+
require.NoError(t, apitest.MockDockerLogs(utils.Docker, containerId, "success"))
6464
// Run test
6565
noVerifyJWT := true
6666
err := Run(context.Background(), "", ".env", &noVerifyJWT, "", fsys)

0 commit comments

Comments
 (0)