]> Cypherpunks repositories - gostls13.git/commit
os: don't check for IsExist in MkdirAll example
authorStefan Dombrowski <sdo451@gmail.com>
Mon, 6 Jun 2022 08:23:37 +0000 (08:23 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 29 Mar 2023 22:44:59 +0000 (22:44 +0000)
commitfde1b139be35c655437a8df668dddf0367c3a67c
treea4309697c1a8e71ac7f5c082662ac25b7e5efe4d
parentb431277da850b47cd05c5e7697303c0d6fbe2cea
os: don't check for IsExist in MkdirAll example

If a directory already exists, then MkdirAll returns nil. Therefore the
check with IsExist is not necessary.

Change-Id: Idf83c056f64bb56f49eb2b649af7827b759bcd7c
GitHub-Last-Rev: 1f29873d0cd852642938cbd899549b9bf04301da
GitHub-Pull-Request: golang/go#53242
Reviewed-on: https://go-review.googlesource.com/c/go/+/410434
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/example_test.go