MCPcopy Create free account
hub / github.com/daodst/chat / boolToInt

Function boolToInt

mediaapi/thumbnailer/thumbnailer.go:197–202  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

195}
196
197func boolToInt(b bool) int {
198 if b {
199 return 1
200 }
201 return 0
202}
203
204func (a thumbnailFitness) betterThan(b thumbnailFitness, desiredCrop bool) bool {
205 // preference means returning -1

Callers 1

calcThumbnailFitnessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected