Fix `gofmt' errors.

This commit is contained in:
Srinidhi Kaushik 2018-10-16 21:31:59 +05:30
parent d17ce325a6
commit 00720ba51d
No known key found for this signature in database
GPG Key ID: A37B977BB13301D0

View File

@ -311,7 +311,7 @@ func stripPathShortcuts(p string) string {
}
// trim leftover {".", ".."}
if (newPath == "." || newPath == "..") {
if newPath == "." || newPath == ".." {
newPath = ""
}