File tree 1 file changed +1
-8
lines changed 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1096,7 +1096,7 @@ func (w *prefixSuffixSaver) Write(p []byte) (n int, err error) {
1096
1096
// grow larger than w.N. It returns the un-appended suffix of p.
1097
1097
func (w * prefixSuffixSaver ) fill (dst * []byte , p []byte ) (pRemain []byte ) {
1098
1098
if remain := w .N - len (* dst ); remain > 0 {
1099
- add := minInt (len (p ), remain )
1099
+ add := min (len (p ), remain )
1100
1100
* dst = append (* dst , p [:add ]... )
1101
1101
p = p [add :]
1102
1102
}
@@ -1121,13 +1121,6 @@ func (w *prefixSuffixSaver) Bytes() []byte {
1121
1121
return buf .Bytes ()
1122
1122
}
1123
1123
1124
- func minInt (a , b int ) int {
1125
- if a < b {
1126
- return a
1127
- }
1128
- return b
1129
- }
1130
-
1131
1124
// environ returns a best-effort copy of the environment in which the command
1132
1125
// would be run as it is currently configured. If an error occurs in computing
1133
1126
// the environment, it is returned alongside the best-effort copy.
You can’t perform that action at this time.
0 commit comments