diff options
author | Florian Klink <flokli@flokli.de> | 2022-12-30T14·57+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-12-30T15·18+0000 |
commit | d22a9c8610f2cd1bf0e021ec1f46e6200ed4a28f (patch) | |
tree | 2632b19ed35adcde79f6da1a15ebd387b2ce49b0 /tvix/store/protos/castore.go | |
parent | 4036740ca78e82ed0b9c3923b585fe383216f5a8 (diff) |
chore(tvix/store/protos): more idiomatic go r/5553
Pointed out by edef in https://cl.tvl.fyi/c/depot/+/7648/comment/4551ba4b_e89ade36/#, thanks! Change-Id: I6b0d317bb0210521622483cdf4cb557bc637a100 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7709 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/store/protos/castore.go')
-rw-r--r-- | tvix/store/protos/castore.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tvix/store/protos/castore.go b/tvix/store/protos/castore.go index 9969da78a7ca..634aa7924f64 100644 --- a/tvix/store/protos/castore.go +++ b/tvix/store/protos/castore.go @@ -62,9 +62,7 @@ func (d *Directory) Validate() error { // We also track the last seen name in each of the three lists, // to ensure nodes are sorted by their names. - lastDirectoryName := "" - lastFileName := "" - lastSymlinkName := "" + var lastDirectoryName, lastFileName, lastSymlinkName string // helper function to only insert in sorted order. // used with the three lists above. |