jacobsa / fuse

A Go package for implementing a FUSE file system.
Apache License 2.0
478 stars 106 forks source link

refactor: Remove duplicate code in test #119

Closed JakWai01 closed 2 years ago

JakWai01 commented 2 years ago

I found a snipped of duplicate code in a test and removed it. The original copy is located right above.

The unchanged code with the duplicate looks like this:

// The offset should have been updated to point at the end of the file.
off, err = getFileOffset(f)
AssertEq(nil, err)
ExpectEq(13, off)

off, err = getFileOffset(f)
AssertEq(nil, err)
ExpectEq(13, off)
stapelberg commented 2 years ago

Thanks!