internal/postgres: merge identical calls
Trust: Jonathan Amsterdam
Run-TryBot: Jonathan Amsterdam
TryBot-Result: kokoro
@@ -14,7 +14,6 @@ import (
"golang.org/x/pkgsite/internal/database"
"golang.org/x/pkgsite/internal/derrors"
"golang.org/x/pkgsite/internal/middleware"
- "golang.org/x/pkgsite/internal/stdlib"
"golang.org/x/pkgsite/internal/symbol"
)
@@ -25,9 +24,6 @@ func (db *DB) GetSymbolHistory(ctx context.Context, packagePath, modulePath stri
defer derrors.Wrap(&err, "GetSymbolHistory(ctx, %q, %q)", packagePath, modulePath)
defer middleware.ElapsedStat(ctx, "GetSymbolHistory")()
- if modulePath == stdlib.ModulePath {
- return GetSymbolHistoryFromTable(ctx, db.db, packagePath, modulePath)
- }
return GetSymbolHistoryFromTable(ctx, db.db, packagePath, modulePath)
}
